VDB
Sign up
MEDIUM5.5

GHSA-rc9v-h28f-jcmf

There is a XML external entity expansion (XXE) vulnerability in Apache Solr config files

Quick fix

GHSA-rc9v-h28f-jcmf — org.apache.solr:solr-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>6.6.4</version> for org.apache.solr:solr-core

Details

This vulnerability in Apache Solr 6.0.0 to 6.6.3, 7.0.0 to 7.3.0 relates to an XML external entity expansion (XXE) in Solr config files (solrconfig.xml, schema.xml, managed-schema). In addition, Xinclude functionality provided in these config files is also affected in a similar way. The vulnerability 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. Users are advised to upgrade to either Solr 6.6.4 or Solr 7.3.1 releases both of which address the vulnerability. Once upgrade is complete, no other steps are required. Those releases only allow external entities and Xincludes that refer to local files / zookeeper resources below the Solr instance directory (using Solr's ResourceLoader); usage of absolute URLs is denied. Keep in mind, that external entities and XInclude are explicitly supported to better structure config files in large installations. Before Solr 6 this was no problem, as config files were not accessible through the APIs.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.solr:solr-core
Introduced in: 6.6.0Fixed in: 6.6.4
Fix# pom.xml: bump <version>6.6.4</version> for org.apache.solr:solr-core
Maven/org.apache.solr:solr-core
Introduced in: 7.0.0Fixed in: 7.3.1
Fix# pom.xml: bump <version>7.3.1</version> for org.apache.solr:solr-core

References