XML external entity injection in Apache Solr
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-611 and the CVSS impact.
Summary
This vulnerability in Apache Solr 1.2 to 6.6.2 and 7.0.0 to 7.2.1 relates to an XML external entity expansion (XXE) in the `&dataConfig=<inlinexml>` parameter of Solr's DataImportHandler. It can be used as XXE using file/ftp/http protocols in order to read arbitrary local files from the Solr server or the internal network.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Solr | 1.2 to 6.6.2; 7.0.0 to 7.2.1 | — | No fix listed | CNA |
| — | org.apache.solr:solr-core (Maven) | 1.2 to before 6.6.3 | 6.6.3 | Patch available | GHSA-3pph-2595-cgfh |
| — | org.apache.solr:solr-core (Maven) | 7.0.0 to before 7.3.0 | 7.3.0 | Patch available | GHSA-3pph-2595-cgfh |
- Apache Solr VendorApache Affected 1.2 to 6.6.2; 7.0.0 to 7.2.1 Fixed in — No fix listed CNA
- org.apache.solr:solr-core (Maven) Vendor— Affected 1.2 to before 6.6.3 Fixed in 6.6.3 Patch available GHSA-3pph-2595-cgfh
- org.apache.solr:solr-core (Maven) Vendor— Affected 7.0.0 to before 7.3.0 Fixed in 7.3.0 Patch available GHSA-3pph-2595-cgfh
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:* | 1.2 – 6.6.2; 7.0.0 – 7.2.1 | Vulnerable | Apache |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
- cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:* Versions 1.2 – 6.6.2; 7.0.0 – 7.2.1 Vulnerable ·Apache
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-3pph-2595-cgfh org.apache.solr:solr-core (Maven) Fixed in 6.6.3 Advisory →
- Fix · GHSA-3pph-2595-cgfh org.apache.solr:solr-core (Maven) Fixed in 7.3.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 9 products
- JBoss Developer Studio 11
- Red Hat Fuse 7
- Red Hat JBoss Data Grid 6
- Red Hat JBoss Data Virtualization 6
- Red Hat JBoss Enterprise Application Platform 6
- Red Hat JBoss Fuse 6
- Red Hat JBoss Fuse Integration Service 2
- Red Hat JBoss Fuse Service Works 6
- Red Hat JBoss Portal 6
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1308
- 2026-10-03 Alias added: GHSA-3pph-2595-cgfh
References
Advisory 6
- DSA-4194
- [debian-lts-announce] 20180424 [SECURITY] [DLA 1360-1] lucene-solr security update
- [www-announce] 20180408 [SECURITY] CVE-2018-1308: XXE attack through Apache Solr's DIH's dataConfig request parameter
- https://issues.apache.org/jira/browse/SOLR-11971
- https://nvd.nist.gov/vuln/detail/CVE-2018-1308
- https://github.com/advisories/GHSA-3pph-2595-cgfh
Other 5
- [lucene-solr-user] 20190104 Re: SOLR v7 Security Issues Caused Denial of Use - Sonatype Application Composition Report
- https://github.com/apache/lucene-solr/commit/3530397f1777332872eac2760f9aa0e2ae1d7450
- https://github.com/apache/lucene-solr/commit/739a7933
- https://github.com/apache/lucene-solr/commit/dd3be31f7062dcb2f3b2d7f0e89df29e197dee63
- https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E
More Apache Solr vulnerabilities
- TI-2024-30303 Apache Solr: Authentication bypass possible using a fake URL Path ending CVSS 3.1CRITICAL 9.8
- TI-2019-13101 Injection in Apache Solr KEVCVSS 3.1HIGH 7.5
- TI-2019-00170 Code injection in Apache Solr KEVCVSS 3.1HIGH 7.2
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2021-09240 SSRF vulnerability with the Replication handler CVSS 3.1CRITICAL 9.8
- TI-2017-09354 XML external entity injection in Apache Solr before 7.1 with Apache Lucene before 7.1 CVSS 3.1CRITICAL 9.8
Sources
- CVE-2018-1308 · CVE Program
- CVE-2018-1308 · NVD
- FIRST EPSS
- GHSA-3pph-2595-cgfh · GitHub Advisory Database · CC BY 4.0
- CVE-2018-1308 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences