CVE-2025-22235 Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed

High 7.3 Published Updated

Attackers can bypass security controls on the /null path if Spring Security uses EndpointRequest.to() for disabled actuator endpoints.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22235?

CVE-2025-22235 is a high-severity missing authorization vulnerability in Spring Boot, published on 28 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-20

Which versions are affected by CVE-2025-22235?

10 open source packages ship an affected version, including org.springframework.boot:spring-boot.

PackageAffectedFixed in
org.springframework.boot:spring-boot MavenAll versions to 2.7.24.2None
org.springframework.boot:spring-boot MavenAll versions to 2.7.24.2None
org.springframework.boot:spring-boot MavenFrom 3.1.0 to 3.1.15.2None
org.springframework.boot:spring-boot MavenFrom 3.1.0 to 3.1.15.2None
org.springframework.boot:spring-boot MavenFrom 3.2.0 to 3.2.13.2None
org.springframework.boot:spring-boot MavenFrom 3.2.0 to 3.2.13.2None
4 more packages
org.springframework.boot:spring-boot MavenFrom 3.3.03.3.11
org.springframework.boot:spring-boot MavenFrom 3.3.03.3.11
org.springframework.boot:spring-boot MavenFrom 3.4.03.4.5
org.springframework.boot:spring-boot MavenFrom 3.4.03.4.5

How do I fix CVE-2025-22235?

Upgrade org.springframework.boot:spring-boot to a fixed version for your release line: 3.3.11 or 3.4.5.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-22235 being exploited?

There is no known exploitation of CVE-2025-22235 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as CLEANSTART-2026-CC58014, CLSA-2025-1748390600, CLSA-2025-1754006610, ECHO-668f-c580-6f98, GHSA-rc42-6c7j-7h5r, MINI-594c-6x6w-6hgh and 3 more.

Is CVE-2025-22235 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free