CVE-2025-41234
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 · uneditedDescription 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 confidenceReflected 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify Spring Framework versionInspect your project dependencies (pom.xml, build.gradle, or Maven/Gradle output) or check the spring-core jar manifest for the version numberAffected 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)
-
Find ContentDisposition filename usageSearch your codebase for imports and usage of org.springframework.http.ContentDisposition, specifically look for ContentDisposition.builder() or ContentDisposition.builder().filename( callsAffected if Your application code contains calls to ContentDisposition.Builder#filename(String, Charset)
-
Check for non-ASCII charset usageExamine 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
-
Verify user input flows to filenameTrace 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.
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 · scopedUpgrade 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.
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. Identify the current Spring Framework version in use by checking project dependencies (e.g., pom.xml, build.gradle)
- 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. Update the Spring Framework dependency version in your build configuration to the fixed version
- 4. Rebuild and test the application to verify the upgrade does not break existing functionality
- 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. Ensure any user-supplied input used in Content-Disposition headers is properly sanitized if continuing to use non-ASCII charset option
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-41234 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