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

spring-boot-starter-oauth2-client-3.2.6.jar: 3 vulnerabilities (highest severity is: 7.5) reachable #7

Open
mend-for-jackfan.us.kg bot opened this issue Jun 9, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

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

mend-for-jackfan.us.kg bot commented Jun 9, 2024

Vulnerable Library - spring-boot-starter-oauth2-client-3.2.6.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-oauth2-client/6.2.4/spring-security-oauth2-client-6.2.4.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-boot-starter-oauth2-client version) Remediation Possible** Reachability
CVE-2023-52428 High 7.5 nimbus-jose-jwt-9.24.4.jar Transitive 3.2.7

Reachable

CVE-2024-38827 Medium 4.8 spring-security-oauth2-client-6.2.4.jar Transitive 3.2.12

Unreachable

CVE-2024-57699 High 7.5 json-smart-2.5.1.jar Transitive 3.2.7

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

Details

CVE-2023-52428

Vulnerable Library - nimbus-jose-jwt-9.24.4.jar

Java library for Javascript Object Signing and Encryption (JOSE) and JSON Web Tokens (JWT)

Library home page: https://connect2id.com

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/nimbusds/nimbus-jose-jwt/9.24.4/nimbus-jose-jwt-9.24.4.jar

Dependency Hierarchy:

  • spring-boot-starter-oauth2-client-3.2.6.jar (Root Library)
    • spring-security-oauth2-client-6.2.4.jar
      • oauth2-oidc-sdk-9.43.3.jar
        • nimbus-jose-jwt-9.24.4.jar (Vulnerable Library)

Found in base branch: main

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.webgoat.webwolf.WebSecurityConfig (Application)
  -> org.springframework.security.config.annotation.web.builders.HttpSecurity (Extension)
   -> org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer (Extension)
    -> org.springframework.security.oauth2.client.oidc.authentication.OidcIdTokenDecoderFactory (Extension)
    ...
      -> com.nimbusds.jwt.proc.DefaultJWTProcessor (Extension)
       -> com.nimbusds.jose.crypto.factories.DefaultJWEDecrypterFactory (Extension)
        -> ❌ com.nimbusds.jose.crypto.PasswordBasedDecrypter (Vulnerable Component)

Vulnerability Details

In Connect2id Nimbus JOSE+JWT before 9.37.2, an attacker can cause a denial of service (resource consumption) via a large JWE p2c header value (aka iteration count) for the PasswordBasedDecrypter (PBKDF2) component.

Publish Date: 2024-02-11

URL: CVE-2023-52428

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://www.cve.org/CVERecord?id=CVE-2023-52428

Release Date: 2024-02-11

Fix Resolution (com.nimbusds:nimbus-jose-jwt): 9.37.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-oauth2-client): 3.2.7

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-38827

Vulnerable Library - spring-security-oauth2-client-6.2.4.jar

Spring Security

Library home page: https://spring.io

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-oauth2-client/6.2.4/spring-security-oauth2-client-6.2.4.jar

Dependency Hierarchy:

  • spring-boot-starter-oauth2-client-3.2.6.jar (Root Library)
    • spring-security-oauth2-client-6.2.4.jar (Vulnerable Library)

Found in base branch: main

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

The usage of String.toLowerCase() and String.toUpperCase() has some Locale dependent exceptions that could potentially result in authorization rules not working properly.

Publish Date: 2024-12-02

URL: CVE-2024-38827

CVSS 3 Score Details (4.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://spring.io/security/cve-2024-38827

Release Date: 2024-12-02

Fix Resolution (org.springframework.security:spring-security-oauth2-client): 6.2.8

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-oauth2-client): 3.2.12

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-57699

Vulnerable Library - json-smart-2.5.1.jar

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

Library home page: https://urielch.github.io/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/net/minidev/json-smart/2.5.1/json-smart-2.5.1.jar

Dependency Hierarchy:

  • spring-boot-starter-oauth2-client-3.2.6.jar (Root Library)
    • spring-security-oauth2-client-6.2.4.jar
      • oauth2-oidc-sdk-9.43.3.jar
        • json-smart-2.5.1.jar (Vulnerable Library)

Found in base branch: main

Vulnerability Details

A security issue was found in Netplex Json-smart 2.5.0 through 2.5.1. When loading a specially crafted JSON input, containing a large number of ’{’, a stack exhaustion can be trigger, which could allow an attacker to cause a Denial of Service (DoS). This issue exists because of an incomplete fix for CVE-2023-1370.

Publish Date: 2025-02-05

URL: CVE-2024-57699

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: GHSA-pq2g-wx69-c263

Release Date: 2025-02-05

Fix Resolution (net.minidev:json-smart): 2.5.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-oauth2-client): 3.2.7

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jun 9, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title spring-boot-starter-oauth2-client-3.2.6.jar: 1 vulnerabilities (highest severity is: 7.5) reachable spring-boot-starter-oauth2-client-3.2.6.jar: 2 vulnerabilities (highest severity is: 7.5) reachable Nov 20, 2024
@mend-for-jackfan.us.kg mend-for-jackfan.us.kg bot changed the title spring-boot-starter-oauth2-client-3.2.6.jar: 2 vulnerabilities (highest severity is: 7.5) reachable spring-boot-starter-oauth2-client-3.2.6.jar: 3 vulnerabilities (highest severity is: 7.5) reachable Feb 6, 2025
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 Mend
Projects
None yet
Development

No branches or pull requests

0 participants