CVE-2017-12629 High Severity Vulnerability detected by WhiteSource
CVE-2017-12629 - High Severity Vulnerability
Vulnerable Library - lucene-queryparser-5.5.5.jar
Lucene QueryParsers module
path: /root/.m2/repository/org/apache/lucene/lucene-queryparser/5.5.5/lucene-queryparser-5.5.5.jar
Library home page: http://lucene.apache.org/lucene-parent/lucene-queryparser
Dependency Hierarchy:
- dependency-check-maven-3.3.4.maven-plugin (Root Library)
- dependency-check-core-3.3.4.jar
- :x: lucene-queryparser-5.5.5.jar (Vulnerable Library)
- dependency-check-core-3.3.4.jar
Vulnerability Details
Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 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.
Publish Date: 2017-10-14
URL: CVE-2017-12629
CVSS 3 Score Details (9.8)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
Suggested Fix
Type: Change files
Origin: https://github.com/apache/lucene-solr/commit/3bba91131b5257e64b9d0a2193e1e32a145b2a23
Release Date: 2017-10-13
Fix Resolution: Replace or update the following files: TestCoreParser.java, CoreParser.java, CHANGES.txt, CHANGES.txt, SolrCoreParser.java, DOCTYPE_TermQuery.xml, ENTITY_TermQuery.xml
Step up your Open Source Security Game with WhiteSource here