CVE-2025-41253
Java vulnerability analysis and mitigation

Overview

CVE-2025-41253 is a security vulnerability affecting Spring Cloud Gateway Server Webflux that allows attackers to expose environment variables and system properties. The vulnerability was discovered and disclosed on October 15, 2025, impacting multiple versions of Spring Cloud Gateway including versions 4.3.0-4.3.x, 4.2.0-4.2.x, 4.1.0-4.1.x, 4.0.0-4.0.x, and 3.1.0-3.1.x (Spring Security, Security Online).

Technical details

The vulnerability stems from the misuse of Spring Expression Language (SpEL) within application routes in Spring Cloud Gateway Server Webflux. The flaw has received a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. It is classified as CWE-917 (Improper Neutralization of Special Elements used in an Expression Language Statement). The vulnerability specifically affects applications using Spring Cloud Gateway Server Webflux, while Spring Cloud Gateway Server WebMVC is not affected (NVD, Security Online).

Impact

When exploited, this vulnerability allows attackers to read environment variables, system properties, and other sensitive data from the application's runtime environment. This could potentially lead to the exposure of authentication tokens, API keys, or database credentials (Security Online).

Mitigation and workarounds

Spring has released fixed versions including 4.3.2 (OSS), 4.2.6 (OSS), 4.1.12 (Commercial), and 3.1.12 (Commercial). For users unable to upgrade immediately, the recommended workaround is to remove 'gateway' from the management.endpoints.web.exposure.include property or secure the actuator endpoints (Security Online).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-41253HIGH7.5
  • JavaJava
  • org.springframework.cloud:spring-cloud-gateway-server-webflux
NoNoOct 16, 2025
CVE-2025-11849MEDIUM6.4
  • JavaScriptJavaScript
  • Mammoth
NoYesOct 17, 2025
GHSA-3xgr-h5hq-7299MEDIUM5.9
  • JavaJava
  • org.opensearch.dataprepper.plugins:geoip-processor
NoYesOct 15, 2025
CVE-2025-41254MEDIUM4.3
  • JavaJava
  • org.springframework:spring-websocket
NoYesOct 16, 2025
CVE-2024-31573MEDIUM4
  • JavaJava
  • org.xmlunit:xmlunit-core
NoYesOct 17, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management