CVE-2025-22235
JSON

7.3high

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

Severity
7.3high CVSS:3.1 by vmware
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-rc42-6c7j-7h5r

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

Product or packageVersionsReported by
Spring Spring Bootfrom 2.7.x before 2.7.25, from 3.1.x before 3.1.16, from 3.2.x before 3.2.14, from 3.3.x before 3.3.11, from 3.4.x before 3.4.5CVE List
org.springframework.boot:spring-boot (Maven)up to 2.7.24.2, from 3.1.0 up to 3.1.15.2, from 3.2.0 up to 3.2.13.2, from 3.3.0 before 3.3.11, from 3.4.0 before 3.4.5GitHub Advisory Database

All scores

vmware7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
GitHub7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Classification

CWE-20CWE-862

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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

NVD (es)

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

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22235 changed 2025-05-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-rc42-6c7j-7h5r changed 2026-09-10CC-BY-4.0
NVDCVE-2025-22235 changed 2026-06-17Public domain