Improper Input Validation Affecting org.springframework.boot:spring-boot-actuator-autoconfigure package, versions [2.7.0,3.3.11)[3.4.0,3.4.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.42% (35th 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 IDSNYK-JAVA-ORGSPRINGFRAMEWORKBOOT-9804539
  • published25 Apr 2025
  • disclosed24 Apr 2025
  • creditJanek Bettinger

Introduced: 24 Apr 2025

CVE-2025-22235  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade org.springframework.boot:spring-boot-actuator-autoconfigure to version 3.3.11, 3.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation via the EndpointRequest.to() function that creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.

Note:

This is only exploitable if all of the following conditions are met:

  1. EndpointRequest.to() has been used in a Spring Security chain configuration;

  2. The endpoint which EndpointRequest references is disabled or not exposed via web;

  3. Your application handles requests to /null and this path needs protection.

Workaround

This can be mitigated by either:

  1. Making sure that the endpoint to which EndpointRequest.to() is referring to is enabled and exposed via web;

  2. Make sure that you don't handle requests to /null.

CVSS Base Scores

version 4.0
version 3.1