Spring Boot
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
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 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
Fixed in 2.7.25, 3.1.16, 3.2.14, 3.3.11, 3.4.5
Mitigation
Upgrade Spring Boot to 2.7.25 or 3.1.16 or 3.2.14 or 3.3.11 or 3.4.5 or later.
Timeline
Days relative to CVE publicationFirst public PoC 115 days after publication; not in CISA KEV. First PoC: idealzh/cve-2025-22235-demo (created 21 Aug 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| idealzh/cve-2025-22235-demo | 21 Aug 2025 +115 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /actuator/health
- Ports
- 8080
- Seen in
- 1 repo: idealzh/cve-2025-22235-demo
- Evidence
- idealzh/cve-2025-22235-demo/test_vulnerability.py:47
GET /actuator/info
- Ports
- 8080
- Seen in
- 1 repo: idealzh/cve-2025-22235-demo
- Evidence
- idealzh/cve-2025-22235-demo/test_vulnerability.py:58
GET /info
- Ports
- 8080
- Seen in
- 1 repo: idealzh/cve-2025-22235-demo
- Evidence
- idealzh/cve-2025-22235-demo/test_vulnerability.py:36
GET /null
- Ports
- 8080
- Seen in
- 1 repo: idealzh/cve-2025-22235-demo
- Evidence
- idealzh/cve-2025-22235-demo/test_vulnerability.py:22
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/actuator/health(?:[?#].*)?$
(?i)^/actuator/info(?:[?#].*)?$
(?i)^/info(?:[?#].*)?$
(?i)^/null(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-22235 Spring Spring Boot exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/actuator/health"; reference:url,poc.griffinguard.io/cve/CVE-2025-22235; classtype:web-application-attack; sid:9114571; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-22235 Spring Spring Boot exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/actuator/info"; reference:url,poc.griffinguard.io/cve/CVE-2025-22235; classtype:web-application-attack; sid:9081297; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-22235 Spring Spring Boot exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/info"; reference:url,poc.griffinguard.io/cve/CVE-2025-22235; classtype:web-application-attack; sid:9598075; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-22235 Spring Spring Boot exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/null"; reference:url,poc.griffinguard.io/cve/CVE-2025-22235; classtype:web-application-attack; sid:9861026; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Spring Spring Boot exploit attempt (CVE-2025-22235)
id: gg-pocmon-cve-2025-22235-9114571
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-22235. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-22235
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/actuator/health'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.22235
title: Spring Spring Boot exploit attempt (CVE-2025-22235)
id: gg-pocmon-cve-2025-22235-9081297
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-22235. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-22235
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/actuator/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.22235
title: Spring Spring Boot exploit attempt (CVE-2025-22235)
id: gg-pocmon-cve-2025-22235-9598075
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-22235. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-22235
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.22235
title: Spring Spring Boot exploit attempt (CVE-2025-22235)
id: gg-pocmon-cve-2025-22235-9861026
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-22235. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-22235
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/null'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.22235