CVE-2013-6408
Description
The DocumentAnalysisRequestHandler in Apache Solr before 4.3.1 does not properly use the EmptyEntityResolver, which allows remote attackers to have an unspecified impact via XML data containing an external entity declaration in conjunction with an entity reference, related to an XML External Entity (XXE) issue. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-6407.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.solr:solr-coreMaven | < 4.3.1 | 4.3.1 |
Affected products
10cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*+ 9 more
- cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*range: <=4.3.0
- cpe:2.3:a:apache:solr:3.6.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:3.6.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:3.6.2:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.0.0:alpha:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.0.0:beta:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:solr:4.2.1:*:*:*:*:*:*:*
Patches
17239a57a51eaSOLR-4881: Fix DocumentAnalysisRequestHandler to correctly use EmptyEntityResolver to prevent loading of external entities like UpdateRequestHandler does
2 files changed · +7 −1
solr/CHANGES.txt+4 −0 modified@@ -216,6 +216,10 @@ Bug Fixes case for handling TermQuery to prevent NullPointerException if reader does not have fields. (Bao Yang Yang, Uwe Schindler) +* SOLR-4881: Fix DocumentAnalysisRequestHandler to correctly use + EmptyEntityResolver to prevent loading of external entities like + UpdateRequestHandler does. (Hossman, Uwe Schindler) + Other Changes ----------------------
solr/core/src/java/org/apache/solr/handler/DocumentAnalysisRequestHandler.java+3 −1 modified@@ -35,6 +35,7 @@ import org.apache.solr.schema.FieldType; import org.apache.solr.schema.IndexSchema; import org.apache.solr.schema.SchemaField; +import org.apache.solr.util.EmptyEntityResolver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -90,6 +91,8 @@ public void init(NamedList args) { super.init(args); inputFactory = XMLInputFactory.newInstance(); + EmptyEntityResolver.configureXMLInputFactory(inputFactory); + inputFactory.setXMLReporter(xmllog); try { // The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe // XMLInputFactory, as that implementation tries to cache and reuse the @@ -103,7 +106,6 @@ public void init(NamedList args) { // isimplementation specific. log.debug("Unable to set the 'reuse-instance' property for the input factory: " + inputFactory); } - inputFactory.setXMLReporter(xmllog); } /**
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
10- issues.apache.org/jira/browse/SOLR-4881nvdPatchWEB
- secunia.com/advisories/55542nvdVendor Advisory
- github.com/advisories/GHSA-45w3-2hvv-pfxqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2013-6408ghsaADVISORY
- rhn.redhat.com/errata/RHSA-2013-1844.htmlnvdWEB
- rhn.redhat.com/errata/RHSA-2014-0029.htmlnvdWEB
- svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txtnvdWEB
- www.openwall.com/lists/oss-security/2013/11/29/2nvdWEB
- github.com/apache/lucene-solr/commit/7239a57a51ea0f4d05dd330ce5e15e4f72f72747ghsaWEB
- secunia.com/advisories/59372nvd
News mentions
0No linked articles in our index yet.