CVE-2017-12629
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.
How to fix
- org.apache.solr:solr-core7.1.0, 6.6.2, 5.5.5 or later
- access.redhat.com/errata/RHSA-2017:3451
- access.redhat.com/errata/RHSA-2018:0002
- access.redhat.com/errata/RHSA-2018:0004
- access.redhat.com/errata/RHSA-2017:3452
- access.redhat.com/errata/RHSA-2018:0003
- access.redhat.com/errata/RHSA-2017:3123
- access.redhat.com/errata/RHSA-2018:0005
- access.redhat.com/errata/RHSA-2017:3244
- access.redhat.com/errata/RHSA-2017:3124
- debian.org/security/2018/dsa-4124
- usn.ubuntu.com/4259-1/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache solr | 5.5.0 ≤ v ≤ 5.5.4, 6.0.0 ≤ v ≤ 6.6.1, 7.0.0 ≤ v ≤ 7.0.1 | — |
| redhat jboss_enterprise_application_platform | 7.0.0, 7.1.0 | — |
| debian debian_linux | 7.0, 8.0, 9.0 | — |
| canonical ubuntu_linux | 16.04 | — |
| org.apache.solr:solr-coreMaven | 7.0.0 ≤ v < 7.1.0, 6.0.0 ≤ v < 6.6.2, 5.5.0 ≤ v < 5.5.5 | 7.1.0, 6.6.2, 5.5.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.