VDB
Sign up
CRITICAL9.8

GHSA-mh7g-99w9-xpjm

Remote code execution occurs in Apache Solr

Quick fix

GHSA-mh7g-99w9-xpjm — org.apache.solr:solr-core: upgrade to the fixed version with the command below.

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

Details

Remote code execution occurs in Apache Solr before versions 5.5.5, 6.6.2 and 7.1.0 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

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.solr:solr-core
Introduced in: 7.0.0Fixed in: 7.1.0
Fix# pom.xml: bump <version>7.1.0</version> for org.apache.solr:solr-core
Maven/org.apache.solr:solr-core
Introduced in: 6.0.0Fixed in: 6.6.2
Fix# pom.xml: bump <version>6.6.2</version> for org.apache.solr:solr-core
Maven/org.apache.solr:solr-core
Introduced in: 5.5.0Fixed in: 5.5.5
Fix# pom.xml: bump <version>5.5.5</version> for org.apache.solr:solr-core

References