CWE-917Weakness · CWE-917

CVE-2025-41253

HIGH · 7.5 CVSS v3.1 Published 2025-10-16
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

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 · unedited
The 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 confidence

This 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.

MitigationSecure 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.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify Spring Cloud Gateway installation
    Check if Spring Cloud Gateway with WebFlux is running by examining the application's dependencies or startup logs for 'spring-cloud-starter-gateway' and 'webflux' artifacts
    Affected if Spring Cloud Gateway Server WebFlux is not present, the vulnerability does not apply
  2. Verify the gateway version
    Check 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
  3. Confirm actuator endpoint is enabled
    Inspect 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 enabled
    Affected if gateway actuator endpoint is enabled (either explicitly or by default)
  4. Check if actuator is exposed without authentication
    Examine 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)
  5. Inspect route definitions for SpEL accessing sensitive data
    Review 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 values
    Affected 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Secure 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.

Recommended fix Moderate confidence

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. 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. 2. Consult the official Spring Cloud Gateway security advisory on spring.io to determine the specific fixed version for your release train.
  3. 3. Upgrade Spring Cloud Gateway to the fixed version (e.g., 4.x.x or 3.x.x depending on your release train).
  4. 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. 5. Verify the fix by testing that SpEL expressions in routes can no longer access environment variables or system properties.
Caveat Review release notes for your specific upgrade path as there may be breaking changes between major versions of Spring Cloud Gateway

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing2.0 h
  • Review / QA1.0 h
10.0 hours of engineering $1,800
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-41253 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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