Skip to content

spring-boot-starter-security-3.1.0.jar: 2 vulnerabilities (highest severity is: 9.8) #10

Description

@mend-for-github-com
Vulnerable Library - spring-boot-starter-security-3.1.0.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-config/6.1.0/spring-security-config-6.1.0.jar

Found in HEAD commit: 6cb7371a4a786747d7db4f425a1e591b13dc7cdc

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-boot-starter-security version) Remediation Possible**
CVE-2023-34034 Critical 9.8 spring-security-config-6.1.0.jar Transitive 3.1.2 ✅
CVE-2023-34035 Medium 5.3 spring-security-config-6.1.0.jar Transitive 3.1.2 ✅

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

Details

CVE-2023-34034

Vulnerable Library - spring-security-config-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-config/6.1.0/spring-security-config-6.1.0.jar

Dependency Hierarchy:

  • spring-boot-starter-security-3.1.0.jar (Root Library)
    • ❌ spring-security-config-6.1.0.jar (Vulnerable Library)

Found in HEAD commit: 6cb7371a4a786747d7db4f425a1e591b13dc7cdc

Found in base branch: main

Vulnerability Details

Using "**" as a pattern in Spring Security configuration
for WebFlux creates a mismatch in pattern matching between Spring
Security and Spring WebFlux, and the potential for a security bypass.

Publish Date: 2023-07-19

URL: CVE-2023-34034

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://spring.io/security/cve-2023-34034

Release Date: 2023-07-19

Fix Resolution (org.springframework.security:spring-security-config): 6.1.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.2

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2023-34035

Vulnerable Library - spring-security-config-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-config/6.1.0/spring-security-config-6.1.0.jar

Dependency Hierarchy:

  • spring-boot-starter-security-3.1.0.jar (Root Library)
    • ❌ spring-security-config-6.1.0.jar (Vulnerable Library)

Found in HEAD commit: 6cb7371a4a786747d7db4f425a1e591b13dc7cdc

Found in base branch: main

Vulnerability Details

Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet. (DispatcherServlet is a Spring MVC component that maps HTTP endpoints to methods on @Controller-annotated classes.)

Specifically, an application is vulnerable when all of the following are true:

  • Spring MVC is on the classpath
  • Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet)
  • The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints

An application is not vulnerable if any of the following is true:

  • The application does not have Spring MVC on the classpath
  • The application secures no servlets other than Spring MVC’s DispatcherServlet
  • The application uses requestMatchers(String) only for Spring MVC endpoints

Publish Date: 2023-07-18

URL: CVE-2023-34035

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: GHSA-4vpr-xfrp-cj64

Release Date: 2023-07-18

Fix Resolution (org.springframework.security:spring-security-config): 6.1.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.2

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions