{"id":"CVE-2025-22235","aliases":["CVE-2025-22235","GHSA-rc42-6c7j-7h5r"],"related":[],"kind":"vulnerability","state":"published","title":"Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"EndpointRequest.to() crea un comparador para null/** si el endpoint del actuador, para el que se creó EndpointRequest, está deshabilitado o no está expuesto. Su aplicación puede verse afectada si se cumplen todas las siguientes condiciones: * Utiliza Spring Security * EndpointRequest.to() se ha utilizado en una configuración de cadena de Spring Security * El punto final al que EndpointRequest hace referencia está deshabilitado o no está expuesto a través de la web * Su aplicación gestiona solicitudes a /null y esta ruta necesita protección no se verá afectado si se cumple alguna de las siguientes condiciones: * No utiliza Spring Security * No utiliza EndpointRequest.to() * El endpoint al que EndpointRequest.to() hace referencia está habilitado y está expuesto * Su aplicación no gestiona solicitudes a /null o esta ruta no necesita protección","source":"nvd"}],"published":"2025-04-28T07:10:35.370Z","modified":"2026-09-10T03:50:24.246Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-20","CWE-862"],"affected":[{"ranges":[{"type":"Enterprise Support Only","introduced":"2.7.x","fixed":"2.7.25","status":"affected"},{"type":"Enterprise Support Only","introduced":"3.1.x","fixed":"3.1.16","status":"affected"},{"type":"Enterprise Support Only","introduced":"3.2.x","fixed":"3.2.14","status":"affected"},{"type":"OSS","introduced":"3.3.x","fixed":"3.3.11","status":"affected"},{"type":"OSS","introduced":"3.4.x","fixed":"3.4.5","status":"affected"}],"vendor":"Spring","product":"Spring Boot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.7.24.2"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","lastAffected":"3.1.15.2"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","lastAffected":"3.2.13.2"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","status":"affected","fixed":"3.3.11"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.4.0","status":"affected","fixed":"3.4.5"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"}],"references":[{"url":"https://spring.io/security/cve-2025-22235","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250516-0010/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22235","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-boot","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250516-0010","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-28T16:16:38.622Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22235","url":"https://www.cve.org/CVERecord?id=CVE-2025-22235","licence":"CVE Terms of Use","modified":"2025-05-16T23:03:06.227Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rc42-6c7j-7h5r","url":"https://github.com/advisories/GHSA-rc42-6c7j-7h5r","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:24.246Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22235","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22235","licence":"Public domain","modified":"2026-06-17T08:45:48.460Z"}],"updatedAt":"2026-11-25T22:58:56.990Z","epss":{"score":0.00449,"percentile":0.40792,"date":"2026-12-01T12:00:22.000Z"}}