Vulnerabilities in pkg:maven/org.springframework.boot/spring-boot-actuator-autoconfigure

PACKAGE
Advisory Identifier: GHSA-g5h3-w546-pj7f
Advisory Summary

CVE-2023-20873 is a CRITICAL (CVSS 9.8) spring boot security bypass with vulnerability (General Security Weakness) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring boot security bypass with wildcard pattern matching on cloud foundry. Remediation is available by upgrading affected packages to version 3.0.6, 2.7.11, 2.6.15, 2.5.15.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework.boot/spring-boot-actuator-autoconfigure

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.springframework.boot/spring-boot-actuator-autoconfigure. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g5h3-w546-pj7f CVE-2023-20873 CRITICAL Spring Boot Security Bypass with Wildcard Pattern Matching on Cloud Foundry

CVE-2023-20873 at a Glance

CVE Identifier CVE-2023-20873
GHSA Identifier GHSA-g5h3-w546-pj7f
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-20873

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.springframework.boot:spring-boot-actuator-autoconfigure fixed: 3.0.6
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-actuator-autoconfigure</artifactId>
    <version>3.0.6</version>
</dependency>
org.springframework.boot:spring-boot-actuator-autoconfigure fixed: 2.7.11
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-actuator-autoconfigure</artifactId>
    <version>2.7.11</version>
</dependency>
org.springframework.boot:spring-boot-actuator-autoconfigure fixed: 2.6.15
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-actuator-autoconfigure</artifactId>
    <version>2.6.15</version>
</dependency>
org.springframework.boot:spring-boot-actuator-autoconfigure fixed: 2.5.15
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-actuator-autoconfigure</artifactId>
    <version>2.5.15</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.springframework.boot

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-20873, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework.boot

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.boot command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Spring Boot versions 3.0.0 - 3.0.5, 2.7.0 - 2.7.10, and older unsupported versions, an application that is deployed to Cloud Foundry could be susceptible to a security bypass. Users of affected versions should apply the following mitigation: 3.0.x users should upgrade to 3.0.6+. 2.7.x users should upgrade to 2.7.11+. Users of older, unsupported versions should upgrade to 3.0.6+ or 2.7.11+.

CVE-2023-20873 Affected Spring Framework Versions

4 component(s)
Fixed Versions:
3.0.62.7.112.6.152.5.15
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.boot:spring-boot-actuator-autoconfigure
Maven
≥ 3.0.0
< 3.0.6
3.0.6
org.springframework.boot:spring-boot-actuator-autoconfigure
Maven
≥ 2.7.0
< 2.7.11
2.7.11
org.springframework.boot:spring-boot-actuator-autoconfigure
Maven
≥ 2.6.0
< 2.6.15
2.6.15
org.springframework.boot:spring-boot-actuator-autoconfigure
Maven
< 2.5.15
2.5.15

References

Frequently Asked Questions

What is CVE-2023-20873?
CVE-2023-20873 is a security vulnerability in Spring Framework involving Spring Boot Security Bypass with Wildcard Pattern Matching on Cloud Foundry under General Security Weakness.
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.0.6, 2.7.11, 2.6.15, 2.5.15 across affected packages: org.springframework.boot:spring-boot-actuator-autoconfigure.
What version fixes CVE-2023-20873?
Upgrading to 3.0.6, 2.7.11, 2.6.15, 2.5.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-boot-actuator-autoconfigure affected?
Yes, org.springframework.boot:spring-boot-actuator-autoconfigure is affected in releases prior to 3.0.6, 2.7.11, 2.6.15, 2.5.15. Upgrade your dependency to 3.0.6, 2.7.11, 2.6.15, 2.5.15 or later.
What is the CVSS score of CVE-2023-20873?
CVE-2023-20873 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-20873?
CVE-2023-20873 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2023-20873?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.boot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g5h3-w546-pj7f",
  "modified" : "2024-07-08T19:07:36Z",
  "published" : "2023-04-20T21:33:27Z",
  "aliases" : [ "CVE-2023-20873" ],
  "summary" : "Spring Boot Security Bypass with Wildcard Pattern Matching on Cloud Foundry",
  "details" : "In Spring Boot versions 3.0.0 - 3.0.5, 2.7.0 - 2.7.10, and older unsupported versions, an application that is deployed to Cloud Foundry could be susceptible to a security bypass. Users of affected versions should apply the following mitigation: 3.0.x users should upgrade to 3.0.6+. 2.7.x users should upgrade to 2.7.11+. Users of older, unsupported versions should upgrade to 3.0.6+ or 2.7.11+.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.boot:spring-boot-actuator-autoconfigure"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.boot:spring-boot-actuator-autoconfigure"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.boot:spring-boot-actuator-autoconfigure"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.6.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.boot:spring-boot-actuator-autoconfigure"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.5.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-20873"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/commit/32444fed4b51cc58dc908467f706102d7f0bfc15"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/commit/3522714c13b47af03bf42e7f2d5994af568cb1a7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-boot"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/releases/tag/v2.5.15"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/releases/tag/v2.6.15"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/releases/tag/v2.7.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-boot/releases/tag/v3.0.6"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20230601-0009"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/blog/2023/05/18/spring-boot-2-5-15-and-2-6-15-available-now"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/security/cve-2023-20873"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-24T20:14:42Z",
    "nvd_published_at" : "2023-04-20T21:15:08Z"
  }
}