{"id":"CVE-2025-22235","published":"2025-04-28T07:10:35Z","modified":"2025-05-16T23:03:06Z","title":"Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed","vendor":"Spring","product":"Spring Boot","tier":"tail","description":{"text":"EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.\n\nYour application may be affected by this if all the following conditions are met:\n\n  *  You use Spring Security\n  *  EndpointRequest.to() has been used in a Spring Security chain configuration\n  *  The endpoint which EndpointRequest references is disabled or not exposed via web\n  *  Your application handles requests to /null and this path needs protection\n\n\nYou are not affected if any of the following is true:\n\n  *  You don't use Spring Security\n  *  You don't use EndpointRequest.to()\n  *  The endpoint which EndpointRequest.to() refers to is enabled and is exposed\n  *  Your application does not handle requests to /null or this path does not need protection","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00449,"percentile":0.39839,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://spring.io/security/cve-2025-22235","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250516-0010/","tags":[]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.97},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Boot","versions":[">= 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"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-28T16:16:38.622106Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","vulnerableRanges":["<=2.7.24.2",">=3.1.0, <=3.1.15.2",">=3.2.0, <=3.2.13.2",">=3.3.0, <3.3.11",">=3.4.0, <3.4.5"],"patched":["3.3.11","3.4.5"],"from":["GHSA-rc42-6c7j-7h5r"],"provenance":"source"}],"summary":{"text":"The Spring Boot component EndpointRequest.to() in Spring Security builds an incorrect request matcher (null/) when the actuator endpoint it references is disabled or not exposed over the web, causing protection intended for that endpoint to misapply. An unauthenticated remote attacker can exploit this over the network with no user interaction, but only if the application uses Spring Security with EndpointRequest.to() in a security chain, the referenced endpoint is disabled or unexposed, and the application handles requests to /null that require protection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:36Z"},"euvd":{"id":"EUVD-2025-12575","exploited":false,"provenance":"source"}}