CWE-113Weakness · CWE-113

CVE-2025-41234

MEDIUM · 6.5 CVSS v3.1 Published 2025-06-12
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
69/100
Remediation priority · Elevated
Remotely reachable

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
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 MitigationUsers of affected versions should upgrade to the corresponding fixed version. Affected version(s)Fix versionAvailability6.2.x6.2.8OSS6.1.x6.1.21OSS6.0.x6.0.29 Commercial https://enterprise.spring.io/ No further mitigation steps are necessary. CWE-113 in `Content-Disposition` handling in VMware Spring Framework versions 6.0.5 to 6.2.7 allows remote attackers to launch Reflected File Download (RFD) attacks via unsanitized user input in `ContentDisposition.Builder#filename(String, Charset)` with non-ASCII charsets.

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

Reflected File Download (RFD) vulnerability in Spring Framework where user-supplied input is used as filename in ContentDisposition.Builder#filename(String, Charset) with non-ASCII charsets without sanitization, allowing attackers to inject malicious commands into downloaded file content.

MitigationUpgrade to Spring Framework 6.0.29, 6.1.21, or 6.2.8; alternatively, use filename(String) or filename(String, ASCII) methods instead of filename(String, Charset), or sanitize user-supplied input before use.

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
High
Privileges
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/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 Framework version
    Inspect your project dependencies (pom.xml, build.gradle, or Maven/Gradle output) or check the spring-core jar manifest for the version number
    Affected if The installed version is earlier than 6.0.29, 6.1.21, or 6.2.8 (e.g., 6.0.0 through 6.0.28, 6.1.0 through 6.1.20, or 6.2.0 through 6.2.7)
  2. Find ContentDisposition filename usage
    Search your codebase for imports and usage of org.springframework.http.ContentDisposition, specifically look for ContentDisposition.builder() or ContentDisposition.builder().filename( calls
    Affected if Your application code contains calls to ContentDisposition.Builder#filename(String, Charset)
  3. Check for non-ASCII charset usage
    Examine the filename method calls found and inspect the second parameter (the Charset argument)
    Affected if The code passes a non-ASCII charset (such as UTF-8, UTF-16, ISO-8859-1, or any charset other than US_ASCII) to the filename method
  4. Verify user input flows to filename
    Trace the value passed to the filename parameter and determine whether it originates from user-supplied data (request parameters, headers, API input, or external API responses)
    Affected if Unsanitized user-provided or external data is directly assigned to the filename parameter without validation

You are affected if your Spring Framework version is below the fixed releases AND your code uses ContentDisposition.Builder#filename(String, Charset) with a non-ASCII charset where the filename value comes from user or external input without sanitization.

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

Upgrade to Spring Framework 6.0.29, 6.1.21, or 6.2.8; alternatively, use filename(String) or filename(String, ASCII) methods instead of filename(String, Charset), or sanitize user-supplied input before use.

Recommended fix High confidence

Spring Framework 6.2.8, 6.1.21, or 6.0.29 depending on current version branch (6.0.x requires commercial subscription for 6.0.29)

  1. 1. Identify the current Spring Framework version in use by checking project dependencies (e.g., pom.xml, build.gradle)
  2. 2. Determine the appropriate upgrade path based on current version: for 6.2.x upgrade to 6.2.8, for 6.1.x upgrade to 6.1.21, for 6.0.x upgrade to 6.0.29
  3. 3. Update the Spring Framework dependency version in your build configuration to the fixed version
  4. 4. Rebuild and test the application to verify the upgrade does not break existing functionality
  5. 5. Alternatively as immediate workaround, refactor code to use ContentDisposition.Builder#filename(String) or ContentDisposition.Builder#filename(String, ASCII) instead of filename(String, Charset) with non-ASCII charsets
  6. 6. Ensure any user-supplied input used in Content-Disposition headers is properly sanitized if continuing to use non-ASCII charset option
Caveat Minor point releases typically contain bug fixes and security patches with backward compatibility; review Spring Framework 6.2.8, 6.1.21, and 6.0.29 release notes for any behavioral changes

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

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
15.0 hours of engineering $2,640
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-41234 — 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-41234 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