Live threats

All CVEs / Apache

CVE-2017-12629Apache Solr

Critical 9.8 No auth neededHigh EPSS

Priority
83
CVSS 3.1
9.8
EPSS
92.5%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Oct 14, 2017
Updated
Jun 17, 2026
Category
Server · Cross-platform
Weakness (CWE)
CWE-611
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Solr.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.solr:solr-core ≥ 7.0.0 < 7.1.0 7.1.0 —
Maven org.apache.solr:solr-core ≥ 6.0.0 < 6.6.2 6.6.2 —
Maven org.apache.solr:solr-core ≥ 5.5.0 < 5.5.5 5.5.5 —

Per OSV / GitHub Advisories (GHSA-mh7g-99w9-xpjm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachesolr≥ 5.5.0 ≤ 5.5.4
apachesolr≥ 6.0.0 ≤ 6.6.1
apachesolr≥ 7.0.0 ≤ 7.0.1
redhatjboss_enterprise_application_platform7.0.0
redhatjboss_enterprise_application_platform7.1.0
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0
canonicalubuntu_linux16.04

Official sources

References

Links published by the sources. Open them with care.