Access Restriction Bypass Affecting org.springframework.boot:spring-boot-actuator-autoconfigure package, versions [,2.5.15)[2.6.0,2.6.15)[2.7.0,2.7.11)[3.0.0,3.0.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.73% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKBOOT-5441321
  • published21 Apr 2023
  • disclosed21 Apr 2023
  • creditUnknown

Introduced: 21 Apr 2023

CVE-2023-20873  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade org.springframework.boot:spring-boot-actuator-autoconfigure to version 2.5.15, 2.6.15, 2.7.11, 3.0.6 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass due to improper implementation of wildcard pattern matching.

An application is vulnerable when all of the following are true:

  1. Users have code that can handle requests matching /cloudfoundryapplication/**. Typically, this will be if there is a catch-all request mapping which matches /**

  2. The application is deployed to Cloud Foundry.

Note: Applications using Spring Cloud Config Server can handle requests to /cloudfoundryapplication/** by default and can be vulnerable if deployed to Cloud Foundry.

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

  1. The application is not deployed to Cloud Foundry

  2. Users have disabled Cloud Foundry actuator endpoints with management.cloudfoundry.enabled set to false

  3. The application does not have handler mappings that can handle requests to /cloudfoundryapplication/**

Workaround

Users who are unable to upgrade to the fixed version can disable Cloud Foundry actuator endpoints by setting management.cloudfoundry.enabled to false.

CVSS Scores

version 3.1