opensearch-project / opensearch-build

🧰 OpenSearch / OpenSearch-Dashboards Build Systems
Apache License 2.0
135 stars 271 forks source link

CVE-2024-38809 (Medium) detected in spring-web-5.3.29.jar #4980

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

mend-for-github-com[bot] commented 2 weeks ago

CVE-2024-38809 - Medium Severity Vulnerability

Vulnerable Library - spring-web-5.3.29.jar

Spring Web

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/5.3.29/4cd333e48d9a05d05c05ae7426242ecfe4cfb681/spring-web-5.3.29.jar

Dependency Hierarchy: - jenkins-core-2.426.3.jar (Root Library) - spring-security-web-5.8.7.jar - :x: **spring-web-5.3.29.jar** (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Spring Framework is vulnerable DoS via conditional HTTP request. Applications that parse ETags from "If-Match" or "If-None-Match" request headers are vulnerable to Denial of Service attack. All versions before 5.3.38, 6.0.23 and 6.1.12 are affected.

Publish Date: 2024-06-20

URL: CVE-2024-38809

CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - 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://spring.io/security/cve-2024-38809

Release Date: 2024-06-20

Fix Resolution: org.springframework:spring-web:5.3.38,6.0.23,6.1.12

prudhvigodithi commented 2 weeks ago

Adding @zelinh to please take a look.

zelinh commented 2 weeks ago

This spring library is introduced by jenkins core 2.426.3. https://mvnrepository.com/artifact/org.jenkins-ci.main/jenkins-core/2.426.3 We could fix all spring related CVEs by manually upgrade org.springframework.security » spring-security-web to 6.3.3.

zelinh commented 2 weeks ago

After researching, we can't upgrade spring libraries without upgrading jenkins core version and potential JDK upgrade. Explicitly upgrading will cause compatibility issue.