Security Bypass With Wildcard Pattern Matching on Cloud Foundry

HIGH | APRIL 20, 2023 | CVE-2023-20873

Description

In Spring Boot, an application that is deployed to Cloud Foundry could be susceptible to a security bypass.

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

  • You have code that can handle requests that match /cloudfoundryapplication/**. Typically, this will be if there is a catch-all request mapping which matches /**.
  • 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:

  • The application is not deployed to Cloud Foundry
  • You have disabled Cloud Foundry actuator endpoints with management.cloudfoundry.enabled set to false.
  • Your application does not have handler mappings that can handle requests to /cloudfoundryapplication/**.

Affected Spring Products and Versions

Spring Boot:

  • 3.0.0 - 3.0.5
  • 2.7.0 - 2.7.10
  • 2.6.0 - 2.6.14
  • 2.5.14 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
3.0.6OSS
2.7.11OSS
2.6.15OSS
2.5.15OSS

Workarounds: Disable Cloud Foundry actuator endpoints by setting management.cloudfoundry.enabled to false.

History

  • 2023-04-20: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all