Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2025-22235 EUVD-2025-12575GHSA-rc42-6c7j-7h5r

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

Published Apr 28, 2025 · Updated May 16, 2025 · Assigned by vmware

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

Affected products

VendorProductAffectedFixed
Spring Spring Boot 2.7.x – < 2.7.25, 3.1.x – < 3.1.16, 3.2.x – < 3.2.14, 3.3.x – < 3.3.11, 3.4.x – < 3.4.5 2.7.25

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling keycloak-config-cli 6.4.0-r51 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.boot:spring-boot <= 2.7.24.2 — GHSA-rc42-6c7j-7h5r
Maven org.springframework.boot:spring-boot >= 3.1.0, <= 3.1.15.2 — GHSA-rc42-6c7j-7h5r
Maven org.springframework.boot:spring-boot >= 3.2.0, <= 3.2.13.2 — GHSA-rc42-6c7j-7h5r
Maven org.springframework.boot:spring-boot >= 3.3.0, < 3.3.11 3.3.11 GHSA-rc42-6c7j-7h5r
Maven org.springframework.boot:spring-boot >= 3.4.0, < 3.4.5 3.4.5 GHSA-rc42-6c7j-7h5r

Advisories 2

References