snowdensb / jpo-ode

US Department of Transportation (USDOT) Intelligent Transportation Systems Operational Data Environment (ITS ODE). This is the main repository that integrates and coordinates ODE Submodules.
0 stars 0 forks source link

spring-boot-starter-data-rest-2.5.0.jar: 2 vulnerabilities (highest severity is: 5.3) #121

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

mend-for-github-com[bot] commented 4 months ago
Vulnerable Library - spring-boot-starter-data-rest-2.5.0.jar

Path to dependency file: /jpo-ode-svcs/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/hateoas/spring-hateoas/1.3.1/spring-hateoas-1.3.1.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-boot-starter-data-rest version) Remediation Possible** Reachability
CVE-2023-34036 Medium 5.3 spring-hateoas-1.3.1.jar Transitive 2.7.9
CVE-2021-22047 Medium 5.3 spring-data-rest-webmvc-3.5.1.jar Transitive 2.5.6

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

Details

CVE-2023-34036 ### Vulnerable Library - spring-hateoas-1.3.1.jar

Library to support implementing representations for hyper-text driven REST web services.

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

Path to dependency file: /jpo-ode-svcs/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/hateoas/spring-hateoas/1.3.1/spring-hateoas-1.3.1.jar

Dependency Hierarchy: - spring-boot-starter-data-rest-2.5.0.jar (Root Library) - spring-data-rest-webmvc-3.5.1.jar - spring-data-rest-core-3.5.1.jar - :x: **spring-hateoas-1.3.1.jar** (Vulnerable Library)

Found in base branch: dev

### Vulnerability Details

Reactive web applications that use Spring HATEOAS to produce hypermedia-based responses might be exposed to malicious forwarded headers if they are not behind a trusted proxy that ensures correctness of such headers, or if they don't have anything else in place to handle (and possibly discard) forwarded headers either in WebFlux or at the level of the underlying HTTP server. For the application to be affected, it needs to satisfy the following requirements: * It needs to use the reactive web stack (Spring WebFlux) and Spring HATEOAS to create links in hypermedia-based responses. * The application infrastructure does not guard against clients submitting (X-)Forwarded… headers.

Publish Date: 2023-07-17

URL: CVE-2023-34036

### CVSS 3 Score Details (5.3)

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: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-7m5c-fgwf-mwph

Release Date: 2023-07-17

Fix Resolution (org.springframework.hateoas:spring-hateoas): 1.5.5

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-data-rest): 2.7.9

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2021-22047 ### Vulnerable Library - spring-data-rest-webmvc-3.5.1.jar

Spring Data REST - WebMVC

Library home page: https://www.spring.io/spring-data

Path to dependency file: /jpo-ode-svcs/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/data/spring-data-rest-webmvc/3.5.1/spring-data-rest-webmvc-3.5.1.jar

Dependency Hierarchy: - spring-boot-starter-data-rest-2.5.0.jar (Root Library) - :x: **spring-data-rest-webmvc-3.5.1.jar** (Vulnerable Library)

Found in base branch: dev

### Vulnerability Details

In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.

Publish Date: 2021-10-28

URL: CVE-2021-22047

### CVSS 3 Score Details (5.3)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://tanzu.vmware.com/security/cve-2021-22047

Release Date: 2021-10-28

Fix Resolution (org.springframework.data:spring-data-rest-webmvc): 3.5.6

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-data-rest): 2.5.6

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.