CVE-2017-12629
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | lucene-solr | Fixed | 3.6.2+dfsg-8ubuntu0.1 | UBUNTU-CVE-2017-12629 |
| Ubuntu 14.04 | lucene-solr | Fix pending | 3.6.2+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2017-12629 |
| Debian 14 | lucene-solr | Fixed | 3.6.2+dfsg-11 | DEBIAN-CVE-2017-12629 |
| Debian 13 | lucene-solr | Fixed | 3.6.2+dfsg-11 | DEBIAN-CVE-2017-12629 |
| Debian 12 | lucene-solr | Fixed | 3.6.2+dfsg-11 | DEBIAN-CVE-2017-12629 |
| Red Hat Enterprise Linux 6 | lucene | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | lucene-contrib | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | lucene-demo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | lucene-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | lucene | Not affected | ||
| Maven library | org.apache.solr:solr-core | Fixed | 6.6.2 | GHSA-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.
- Apache Solr before 7.1 with Apache Lucene before 7.1: affected: Apache Solr before 7.1 with Apache Lucene before 7.1, lucene-solr 7.2.0 not affected, lucene-solr 8.0.0 not affected, lucene-solr to before 7.1.0; fixed in
7.1.0,6.6.2,5.5.5 - Apache Solr before 7.1 with Apache Lucene before 7.1: affected: lucene-solr to before 5.3.1-redhat-2; fixed in
5.3.1-redhat-2
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2017:3451 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0002 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0004 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:3452 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0003 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:3123 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2017:3451
- https://s.apache.org/FJDl
- https://access.redhat.com/errata/RHSA-2018:0002
- http://www.securityfocus.com/bid/101261
- https://access.redhat.com/errata/RHSA-2018:0004
- https://access.redhat.com/errata/RHSA-2017:3452
- https://lists.debian.org/debian-lts-announce/2018/01/msg00028.html
- https://www.exploit-db.com/exploits/43009/
- https://access.redhat.com/errata/RHSA-2018:0003
- https://access.redhat.com/errata/RHSA-2017:3123
- https://access.redhat.com/errata/RHSA-2018:0005
- https://access.redhat.com/errata/RHSA-2017:3244
- https://access.redhat.com/errata/RHSA-2017:3124
- http://mail-archives.us.apache.org/mod_mbox/www-announce/201710.mbox/%3CCAOOKt51UO_6Vy%3Dj8W%3Dx1pMbLW9VJfZyFWz7pAnXJC_OAdSZubA%40mail.gmail.com%3E
- https://www.debian.org/security/2018/dsa-4124
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.