{"id":"CVE-2025-41253","aliases":["CVE-2025-41253","GHSA-fwxx-wv44-7qfg"],"related":[],"kind":"vulnerability","state":"published","title":"Spring Cloud Gateway Webflux SpEL Injection Vulnerability Allowing Exposure of Environment Variables","summary":"The following versions of Spring Cloud Gateway Server Webflux may be vulnerable to the ability to expose environment variables and system properties to attackers.\n\nAn application should be considered vulnerable when all the following are true:\n\n  *  The application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable).\n  *  An admin or untrusted third party using Spring Expression Language (SpEL) to access environment variables or system properties via routes.\n  *  An untrusted third party could create a route that uses SpEL to access environment variables or system properties if:  *  The Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via management.endpoints.web.exposure.include=gateway and management.endpoint.gateway.enabled=trueor management.endpoint.gateway.access=unrestricte.\n  *  The actuator endpoints are available to attackers.\n  *  The actuator endpoints are unsecured.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The following versions of Spring Cloud Gateway Server Webflux may be vulnerable to the ability to expose environment variables and system properties to attackers.\n\nAn application should be considered vulnerable when all the following are true:\n\n  *  The application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable).\n  *  An admin or untrusted third party using Spring Expression Language (SpEL) to access environment variables or system properties via routes.\n  *  An untrusted third party could create a route that uses SpEL to access environment variables or system properties if:  *  The Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via management.endpoints.web.exposure.include=gateway and management.endpoint.gateway.enabled=trueor management.endpoint.gateway.access=unrestricte.\n  *  The actuator endpoints are available to attackers.\n  *  The actuator endpoints are unsecured.","source":"cvelist"},{"lang":"es","text":"Las siguientes versiones de Spring Cloud Gateway Servidor Webflux pueden ser vulnerables a la capacidad de exponer variables de entorno y propiedades del sistema a atacantes.\n\nUna aplicación debe considerarse vulnerable cuando se cumplen todas las siguientes condiciones:\n\n  *  La aplicación está utilizando Spring Cloud Gateway Servidor Webflux (Spring Cloud Gateway Servidor WebMVC no es vulnerable).\n  *  Un administrador o un tercero no confiable utilizando Spring Expression Language (SpEL) para acceder a variables de entorno o propiedades del sistema a través de rutas.\n  *  Un tercero no confiable podría crear una ruta que utiliza SpEL para acceder a variables de entorno o propiedades del sistema si:\n  *  El endpoint web del actuador de Spring Cloud Gateway Servidor Webflux está habilitado a través de management.endpoints.web.exposure.include=gateway y management.endpoint.gateway.enabled=true o management.endpoint.gateway.access=unrestricted.\n  *  Los endpoints del actuador están disponibles para atacantes.\n  *  Los endpoints del actuador no están protegidos.","source":"nvd"}],"published":"2025-10-16T14:25:21.356Z","modified":"2026-10-09T10:10:00.193Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-917"],"affected":[{"ranges":[{"version":"3.1.x","status":"affected"},{"version":"4.0.x","status":"affected"},{"version":"4.1.x","status":"affected"},{"version":"4.2.x","status":"affected"},{"version":"4.3.x","status":"affected"}],"vendor":"VMware","product":"Spring Cloud Gateway Server Webflux","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.3.0","status":"affected","fixed":"4.3.2"}],"ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.2.6"}],"ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","lastAffected":"4.1.9"}],"ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.1.10"}],"ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway-server","source":"ghsa"}],"references":[{"url":"https://spring.io/security/cve/2025-41253","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N&version=3.1","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-41253","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-cloud/spring-cloud-gateway","tags":["package"],"sources":["ghsa"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-41253","tags":["web"],"sources":["ghsa"]}],"credits":["This issue was responsibly reported by psytester."],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-10-16T15:05:36.057Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-41253","url":"https://www.cve.org/CVERecord?id=CVE-2025-41253","licence":"CVE Terms of Use","modified":"2025-10-16T15:06:51.091Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fwxx-wv44-7qfg","url":"https://github.com/advisories/GHSA-fwxx-wv44-7qfg","licence":"CC-BY-4.0","modified":"2026-02-19T22:21:56.841Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-41253","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-41253","licence":"Public domain","modified":"2026-10-09T10:10:00.193Z"}],"updatedAt":"2026-11-25T22:59:06.490Z","epss":{"score":0.00491,"percentile":0.43782,"date":"2026-12-02T12:00:21.000Z"}}