CVE-2025-41234

CVE-2025-41234 is a medium-severity security vulnerability in org.springframework:spring-web (maven), affecting versions >= 6.2.0, < 6.2.8. It is fixed in 6.2.8, 6.1.21.

Summary

Description

In Spring Framework, versions 6.0.x as of 6.0.5, versions 6.1.x and 6.2.x, an application is vulnerable to a reflected file download (RFD) attack when it sets a “Content-Disposition” header with a non-ASCII charset, where the filename attribute is derived from user-supplied input.

Specifically, an application is vulnerable when all the following are true:

  • The header is prepared with org.springframework.http.ContentDisposition.
  • The filename is set via ContentDisposition.Builder#filename(String, Charset).
  • The value for the filename is derived from user-supplied input.
  • The application does not sanitize the user-supplied input.
  • The downloaded content of the response is injected with malicious commands by the attacker (see RFD paper reference for details).

An application is not vulnerable if any of the following is true:

  • The application does not set a “Content-Disposition” response header.
  • The header is not prepared with org.springframework.http.ContentDisposition.
  • The filename is set via one of:
    • ContentDisposition.Builder#filename(String), or
    • ContentDisposition.Builder#filename(String, ASCII)
  • The filename is not derived from user-supplied input.
  • The filename is derived from user-supplied input but sanitized by the application.
  • The attacker cannot inject malicious content in the downloaded content of the response.

Affected Spring Products and VersionsSpring Framework

  • 6.2.0 - 6.2.7
  • 6.1.0 - 6.1.20
  • 6.0.5 - 6.0.28
  • Older, unsupported versions are not affected

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
6.2.x 6.2.8 OSS
6.1.x 6.1.21 OSS
6.0.x 6.0.29 Commercial

No further mitigation steps are necessary.

Impact

CVE-2025-41234 has a CVSS score of 6.5 (Medium). The vector is network-reachable, low privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (6.2.8, 6.1.21); upgrading removes the vulnerable code path.

Affected versions

org.springframework:spring-web (>= 6.2.0, < 6.2.8) org.springframework:spring-web (>= 6.1.0, < 6.1.21) org.springframework:spring-web (>= 6.0.5, <= 6.0.23)

Security releases

org.springframework:spring-web → 6.2.8 (maven) org.springframework:spring-web → 6.1.21 (maven)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

org.springframework:spring-web to 6.2.8 or later; org.springframework:spring-web to 6.1.21 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2025-41234? CVE-2025-41234 is a medium-severity security vulnerability in org.springframework:spring-web (maven), affecting versions >= 6.2.0, < 6.2.8. It is fixed in 6.2.8, 6.1.21.
  2. How severe is CVE-2025-41234? CVE-2025-41234 has a CVSS score of 6.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of org.springframework:spring-web are affected by CVE-2025-41234? org.springframework:spring-web (maven) versions >= 6.2.0, < 6.2.8 is affected.
  4. Is there a fix for CVE-2025-41234? Yes. CVE-2025-41234 is fixed in 6.2.8, 6.1.21. Upgrade to this version or later.
  5. Is CVE-2025-41234 exploitable, and should I be worried? Whether CVE-2025-41234 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2025-41234 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2025-41234?
    • Upgrade org.springframework:spring-web to 6.2.8 or later
    • Upgrade org.springframework:spring-web to 6.1.21 or later

Other vulnerabilities in org.springframework:spring-web

CVE-2024-38820CVE-2024-38809CVE-2024-22262CVE-2024-22259CVE-2024-22243

Stop the waste.
Protect your environment with Kodem.