Spring Security EndpointRequest.to() Null/** Matcher Bug
CVE-2025-22235 Published on April 28, 2025
Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed
EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.
Your application may be affected by this if all the following conditions are met:
* You use Spring Security
* EndpointRequest.to() has been used in a Spring Security chain configuration
* The endpoint which EndpointRequest references is disabled or not exposed via web
* Your application handles requests to /null and this path needs protection
You are not affected if any of the following is true:
* You don't use Spring Security
* You don't use EndpointRequest.to()
* The endpoint which EndpointRequest.to() refers to is enabled and is exposed
* Your application does not handle requests to /null or this path does not need protection
Vulnerability Analysis
CVE-2025-22235 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be low. considered to have a small impact on confidentiality and integrity and availability.
Weakness Type
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Products Associated with CVE-2025-22235
stack.watch emails you whenever new vulnerabilities are published in VMware Spring Security or Oracle. Just hit a watch button to start following.
Affected Versions
Spring Boot:- Version 2.7.x and below 2.7.25 is affected.
- Version 3.1.x and below 3.1.16 is affected.
- Version 3.2.x and below 3.2.14 is affected.
- Version 3.3.x and below 3.3.11 is affected.
- Version 3.4.x and below 3.4.5 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.