CVEfocus › CVE database › CVE-2017-12629

CVE-2017-12629

CVSS 9.8 CriticalEPSS 92.5% (in the top 1% of all CVEs)Published 2017-10-14Updated 2024-08-05Assigner: apache

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.

What to do

Likely to be exploited: EPSS gives a 92% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
4Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04lucene-solrFixed3.6.2+dfsg-8ubuntu0.1UBUNTU-CVE-2017-12629
Ubuntu 14.04lucene-solrFix pending3.6.2+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2017-12629
Debian 14lucene-solrFixed3.6.2+dfsg-11DEBIAN-CVE-2017-12629
Debian 13lucene-solrFixed3.6.2+dfsg-11DEBIAN-CVE-2017-12629
Debian 12lucene-solrFixed3.6.2+dfsg-11DEBIAN-CVE-2017-12629
Red Hat Enterprise Linux 6luceneWill not fix
Will not fix
Red Hat Enterprise Linux 6lucene-contribWill not fix
Will not fix
Red Hat Enterprise Linux 6lucene-demoWill not fix
Will not fix
Red Hat Enterprise Linux 6lucene-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 5luceneNot affected
Maven libraryorg.apache.solr:solr-coreFixed6.6.2GHSA-mh7g-99w9-xpjm

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.