VYPR
Moderate severityNVD Advisory· Published Dec 7, 2013· Updated Apr 29, 2026

CVE-2013-6408

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.

PackageAffected versionsPatched versions
org.apache.solr:solr-coreMaven
< 4.3.14.3.1

Affected products

10
  • Apache/Solr10 versions
    cpe: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

1
7239a57a51ea

SOLR-4881: Fix DocumentAnalysisRequestHandler to correctly use EmptyEntityResolver to prevent loading of external entities like UpdateRequestHandler does

https://github.com/apache/lucene-solrUwe SchindlerMay 30, 2013via ghsa
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

News mentions

0

No linked articles in our index yet.