opensearch-project / spring-data-opensearch

Apache License 2.0
118 stars 41 forks source link

wiremock-3.9.2.jar: 2 vulnerabilities (highest severity is: 7.5) #362

Open mend-for-github-com[bot] opened 4 weeks ago

mend-for-github-com[bot] commented 4 weeks ago
Vulnerable Library - wiremock-3.9.2.jar

Path to dependency file: /build.gradle.kts

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-http/11.0.24/eb6113b806eb606750e79fa0bbead5d95f0fc1ad/jetty-http-11.0.24.jar

Found in HEAD commit: 87395f3fdec1f83045286c781873cda03cfe545c

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (wiremock version) Remediation Possible**
CVE-2024-47554 High 7.5 commons-io-2.11.0.jar Transitive N/A*
CVE-2024-6763 Low 3.7 detected in multiple dependencies Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-47554 ### Vulnerable Library - commons-io-2.11.0.jar

The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Library home page: https://www.apache.org/

Path to dependency file: /build.gradle.kts

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.11.0/a2503f302b11ebde7ebc3df41daebe0e4eea3689/commons-io-2.11.0.jar

Dependency Hierarchy: - wiremock-3.9.2.jar (Root Library) - commons-fileupload-1.5.jar - :x: **commons-io-2.11.0.jar** (Vulnerable Library)

Found in HEAD commit: 87395f3fdec1f83045286c781873cda03cfe545c

Found in base branch: main

### Vulnerability Details

Uncontrolled Resource Consumption vulnerability in Apache Commons IO. The org.apache.commons.io.input.XmlStreamReader class may excessively consume CPU resources when processing maliciously crafted input. This issue affects Apache Commons IO: from 2.0 before 2.14.0. Users are recommended to upgrade to version 2.14.0 or later, which fixes the issue.

Publish Date: 2024-10-03

URL: CVE-2024-47554

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://lists.apache.org/thread/6ozr91rr9cj5lm0zyhv30bsp317hk5z1

Release Date: 2024-10-03

Fix Resolution: commons-io:commons-io:2.14.0

CVE-2024-6763 ### Vulnerable Libraries - jetty-server-11.0.24.jar, jetty-http-11.0.24.jar

### jetty-server-11.0.24.jar

The core jetty server artifact.

Library home page: https://jetty.org

Path to dependency file: /build.gradle.kts

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-server/11.0.24/688f5b139c37094b70c8d706a234afaaacd06fe6/jetty-server-11.0.24.jar

Dependency Hierarchy: - wiremock-3.9.2.jar (Root Library) - :x: **jetty-server-11.0.24.jar** (Vulnerable Library) ### jetty-http-11.0.24.jar

Library home page: https://jetty.org

Path to dependency file: /build.gradle.kts

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-http/11.0.24/eb6113b806eb606750e79fa0bbead5d95f0fc1ad/jetty-http-11.0.24.jar

Dependency Hierarchy: - wiremock-3.9.2.jar (Root Library) - jetty-servlets-11.0.24.jar - :x: **jetty-http-11.0.24.jar** (Vulnerable Library)

Found in HEAD commit: 87395f3fdec1f83045286c781873cda03cfe545c

Found in base branch: main

### Vulnerability Details

Eclipse Jetty is a lightweight, highly scalable, Java-based web server and Servlet engine . It includes a utility class, HttpURI, for URI/URL parsing. The HttpURI class does insufficient validation on the authority segment of a URI. However the behaviour of HttpURI differs from the common browsers in how it handles a URI that would be considered invalid if fully validated against the RRC. Specifically HttpURI and the browser may differ on the value of the host extracted from an invalid URI and thus a combination of Jetty and a vulnerable browser may be vulnerable to a open redirect attack or to a SSRF attack if the URI is used after passing validation checks.

Publish Date: 2024-10-14

URL: CVE-2024-6763

### CVSS 3 Score Details (3.7)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/jetty/jetty.project/security/advisories/GHSA-qh8g-58pp-2wxh

Release Date: 2024-10-14

Fix Resolution: org.eclipse.jetty:jetty-http:12.0.12;org.eclipse.jetty:jetty-server:12.0.12

dblock commented 7 hours ago

[Catch All Triage - 1, 2, 3, 4]