CVE-2025-41253
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe following versions of Spring Cloud Gateway Server Webflux may be vulnerable to the ability to expose environment variables and system properties to attackers. An application should be considered vulnerable when all the following are true: * The application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable). * An admin or untrusted third party using Spring Expression Language (SpEL) to access environment variables or system properties via routes. * 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. * The actuator endpoints are available to attackers. * The actuator endpoints are unsecured.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThis is a SpEL (Spring Expression Language) injection vulnerability in Spring Cloud Gateway Server Webflux that allows untrusted attackers to access environment variables and system properties through the actuator endpoint when SpEL expressions in routes reference sensitive system data and the gateway actuator is exposed without authentication.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Spring Cloud Gateway installationCheck if Spring Cloud Gateway with WebFlux is running by examining the application's dependencies or startup logs for 'spring-cloud-starter-gateway' and 'webflux' artifactsAffected if Spring Cloud Gateway Server WebFlux is not present, the vulnerability does not apply
-
Verify the gateway versionCheck the installed spring-cloud-gateway version against known affected versions (compare your version to the affected range provided in Spring Cloud Gateway security advisories)Affected if The version falls within the affected range and other conditions below are met
-
Confirm actuator endpoint is enabledInspect the application configuration (application.yml or application.properties) for 'management.endpoint.gateway.enabled' - if set to true or not explicitly set to false, the gateway actuator is enabledAffected if gateway actuator endpoint is enabled (either explicitly or by default)
-
Check if actuator is exposed without authenticationExamine your security configuration and network exposure: verify that the '/actuator/gateway' endpoint is accessible without authentication (check Spring Security config, networkACLs, or proxy settings)Affected if The actuator endpoint is accessible without authentication (no Spring Security requirement, no auth proxy, or exposed directly)
-
Inspect route definitions for SpEL accessing sensitive dataReview route definitions in configuration or the '/actuator/gateway/routes' endpoint output, looking for SpEL expressions that reference '#{systemProperties}', '#{systemEnvironment}', or property placeholders that could expose sensitive valuesAffected if Routes contain SpEL expressions that reference environment variables or system properties containing sensitive data
A user is affected if running a vulnerable Spring Cloud Gateway WebFlux version with the gateway actuator enabled, exposed without authentication, and using SpEL in routes that reference sensitive environment or system property data.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedSecure or disable the Spring Cloud Gateway actuator endpoints (management.endpoint.gateway.enabled=false or restrict access via authentication/authorization), and avoid using SpEL in routes to access environment variables or system properties containing sensitive data.
Upgrade to the latest patch version of your Spring Cloud Gateway release train (check spring.io/security for the specific CVE-2025-41253 fixed version)
- 1. Identify the exact version of Spring Cloud Gateway Server Webflux currently in use by checking your project dependencies (e.g., pom.xml, build.gradle).
- 2. Consult the official Spring Cloud Gateway security advisory on spring.io to determine the specific fixed version for your release train.
- 3. Upgrade Spring Cloud Gateway to the fixed version (e.g., 4.x.x or 3.x.x depending on your release train).
- 4. If an immediate upgrade is not possible, mitigate by ensuring actuator endpoints are NOT exposed to untrusted parties: set management.endpoints.web.exposure.include to exclude 'gateway', or set management.endpoint.gateway.enabled=false, or secure all actuator endpoints with authentication/authorization.
- 5. Verify the fix by testing that SpEL expressions in routes can no longer access environment variables or system properties.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,880.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-41253 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-41253 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data