CVE-2017-12629
Vulnerability in n/a Apache Solr before 7.1 with Apache Lucene before 7.1
Check your servers for CVE-2017-12629
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2017-12629 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 by exploiting XXE in conjunction with use of a Config API add-listener command to reach the RunExecutableListener class. Elasticsearch, although it uses Lucene, is NOT vulnerable to this. Note that the XML external entity expansion vulnerability occurs in the XML Query Parser which is available, by default, for any query request with parameters deftype=xmlparser and can be exploited to upload malicious data to the /upload request handler or as Blind XXE using ftp wrapper in order to read arbitrary local files from the Solr server. Note also that the second vulnerability relates to remote code execution using the RunExecutableListener available on all affected versions of Solr.
Exploitation
EPSS 92.4%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.8% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Apache Solr before 7.1 with Apache Lucene before 7.1
n/a
|
affected Apache Solr before 7.1 with Apache Lucene before 7.1 unaffected lucene-solr 7.2.0 unaffected lucene-solr 8.0.0 affected from lucene-solr, before 7.1.0 (unaffected from 6.6.2, unaffected from 5.5.5)
|
|
Apache Solr before 7.1 with Apache Lucene before 7.1
n/a
|
affected from lucene-solr, before 5.3.1-redhat-2
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2017-12629 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2017-12629RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2017-12629Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2017-12629
trivy image --scanners vuln IMAGE | grep CVE-2017-12629
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2017:3451 access.redhat.com · vendor advisory
- RHSA-2018:0002 access.redhat.com · vendor advisory
- RHSA-2018:0004 access.redhat.com · vendor advisory
- RHSA-2017:3452 access.redhat.com · vendor advisory
- RHSA-2018:0003 access.redhat.com · vendor advisory
- RHSA-2017:3123 access.redhat.com · vendor advisory
- RHSA-2018:0005 access.redhat.com · vendor advisory
- RHSA-2017:3244 access.redhat.com · vendor advisory
- RHSA-2017:3124 access.redhat.com · vendor advisory
- DSA-4124 debian.org · vendor advisory
- USN-4259-1 usn.ubuntu.com · vendor advisory
Exploits and proof of concept
- 43009 exploit-db.com · exploit
Other references
- [lucene-dev] 20171012 Re: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE) s.apache.org · mailing list
- 101261 securityfocus.com · vdb entry
- [debian-lts-announce] 20180121 [SECURITY] [DLA 1254-1] lucene-solr security update lists.debian.org · mailing list
- [www-announce] 20171019 [SECURITY] CVE-2017-12629: Several critical vulnerabilities discovered in Apache Solr (XXE &… mail-archives.us.apache.org · mailing list
- https://twitter.com/ApacheSolr/status/918731485611401216 twitter.com
- https://twitter.com/searchtools_avi/status/918904813613543424 twitter.com
- http://openwall.com/lists/oss-security/2017/10/13/1 openwall.com
- https://twitter.com/joshbressers/status/919258716297420802 twitter.com
- [solr-users] 20210618 CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability lists.apache.org · mailing list
- [solr-users] 20210618 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability lists.apache.org · mailing list
- [solr-users] 20210728 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability lists.apache.org · mailing list
- [jackrabbit-oak-issues] 20210817 [jira] [Created] (OAK-9537) Security vulnerability in… lists.apache.org · mailing list
Source: the record CVE-2017-12629 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse