Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2017-12629 (High) detected in multiple libraries - autoclosed #222

Closed
mend-for-jackfan.us.kg bot opened this issue Nov 3, 2021 · 0 comments
Closed
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-for-jackfan.us.kg
Copy link

mend-for-jackfan.us.kg bot commented Nov 3, 2021

CVE-2017-12629 - High Severity Vulnerability

Vulnerable Libraries - lucene-queryparser-7.0.1.jar, lucene-queryparser-5.5.4.jar, lucene-queryparser-6.4.1.jar, lucene-queryparser-6.6.0.jar, lucene-queryparser-6.6.1.jar, lucene-queryparser-6.2.0.jar

lucene-queryparser-7.0.1.jar

Lucene QueryParsers module

Library home page: http://lucene.apache.org

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-6/transport-6.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/7.0.1/4634a493b78fe7ced32ca34dc107b753a280a276/lucene-queryparser-7.0.1.jar

Dependency Hierarchy:

  • transport-6.0.0.jar (Root Library)
    • elasticsearch-6.0.0.jar
      • lucene-queryparser-7.0.1.jar (Vulnerable Library)
lucene-queryparser-5.5.4.jar

Lucene QueryParsers module

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-2/transport-2.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/5.5.4/8a06fad4675473d98d93b61fea529e3f464bf69e/lucene-queryparser-5.5.4.jar

Dependency Hierarchy:

  • elasticsearch-2.4.6.jar (Root Library)
    • lucene-queryparser-5.5.4.jar (Vulnerable Library)
lucene-queryparser-6.4.1.jar

Lucene QueryParsers module

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-5.3/transport-5.3.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/6.4.1/1fc5795a072770a2c47dce11a3c85a80f3437af6/lucene-queryparser-6.4.1.jar

Dependency Hierarchy:

  • transport-5.3.0.jar (Root Library)
    • elasticsearch-5.3.0.jar
      • lucene-queryparser-6.4.1.jar (Vulnerable Library)
lucene-queryparser-6.6.0.jar

Lucene QueryParsers module

Library home page: http://lucene.apache.org

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-5.3/transport-5.3.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/6.6.0/a07fe44186311b4d0de7bab907fe6834e584aaa7/lucene-queryparser-6.6.0.jar

Dependency Hierarchy:

  • spring-data-elasticsearch-3.0.0.RELEASE.jar (Root Library)
    • elasticsearch-5.5.0.jar
      • lucene-queryparser-6.6.0.jar (Vulnerable Library)
lucene-queryparser-6.6.1.jar

Lucene QueryParsers module

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-5.3/transport-5.3.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/6.6.1/f80e27fee9595ced0276e3caa53b6d12cc779b0e/lucene-queryparser-6.6.1.jar

Dependency Hierarchy:

  • transport-netty3-client-5.6.16.jar (Root Library)
    • elasticsearch-5.6.16.jar
      • lucene-queryparser-6.6.1.jar (Vulnerable Library)
lucene-queryparser-6.2.0.jar

Lucene QueryParsers module

Path to dependency file: /dd-java-agent/instrumentation/elasticsearch/transport-5/transport-5.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/6.2.0/17ef728ac15e668bfa1105321611548424637645/lucene-queryparser-6.2.0.jar,/home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/6.2.0/17ef728ac15e668bfa1105321611548424637645/lucene-queryparser-6.2.0.jar

Dependency Hierarchy:

  • transport-5.0.0.jar (Root Library)
    • elasticsearch-5.0.0.jar
      • lucene-queryparser-6.2.0.jar (Vulnerable Library)

Found in HEAD commit: 2819174635979a19573ec0ce8e3e2b63a3848079

Found in base branch: master

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-12629

Release Date: 2017-10-14

Fix Resolution (org.apache.lucene:lucene-queryparser): 7.1.0

Direct dependency fix Resolution (org.elasticsearch.client:transport): 6.1.0

Fix Resolution (org.apache.lucene:lucene-queryparser): 5.5.5

Direct dependency fix Resolution (org.elasticsearch:elasticsearch): 5.0.0

Fix Resolution (org.apache.lucene:lucene-queryparser): 6.6.2

Direct dependency fix Resolution (org.elasticsearch.client:transport): 6.0.0

Fix Resolution (org.apache.lucene:lucene-queryparser): 6.6.2

Direct dependency fix Resolution (org.springframework.data:spring-data-elasticsearch): 3.1.0.RELEASE

Fix Resolution (org.apache.lucene:lucene-queryparser): 6.6.2

Direct dependency fix Resolution (org.elasticsearch.client:transport): 6.0.0


⛑️ Automatic Remediation is available for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants