A medium-severity reflected file download (RFD) vulnerability (CVE-2025-41234) in VMware’s Spring Framework has been patched, affecting multiple versions of the widely used Java framework.
The flaw enables attackers to execute malicious code by exploiting improperly configured Content-Disposition headers in a web application.
The vulnerability arises when applications use Spring’s org.springframework.http.ContentDisposition class to set filenames with non-ASCII characters derived from unsanitized user input.
Attackers can craft HTTP responses that trick users into downloading files with executable extensions (e.g., .cmd, .bat) containing malicious commands.
Vulnerable Code Pattern
java// UNSAFE: Uses non-ASCII charset with user-supplied input
ContentDisposition.builder("attachment")
.filename(userInput, StandardCharsets.UTF_8) // Non-ASCII charset
.build();
Safe Alternatives
java// SAFE: Uses ASCII charset
ContentDisposition.builder("attachment")
.filename(userInput, StandardCharsets.US_ASCII) // ASCII restriction
.build();
// SAFE: Sanitizes input
String sanitized = FilenameUtils.sanitize(userInput);
ContentDisposition.builder("attachment")
.filename(sanitized, StandardCharsets.UTF_8)
.build();
| Risk Factor | Description | Impact Level |
|---|---|---|
| Attack Vector | Network (Remote) | Medium |
| Attack Complexity | High | Medium |
| Privileges Required | Low | Medium |
| User Interaction | Required | Medium |
| Confidentiality Impact | High | High |
| Integrity Impact | Low | Low |
| Availability Impact | None | None |
The vulnerability scores a CVSS 6.8 (Medium) due to its reliance on user interaction and contextual scope changes.
Successful exploitation requires:
Impacted Releases
Patched Versions
| Affected Branch | Fixed Version | Availability |
|---|---|---|
| 6.2.x | 6.2.8 | Open Source |
| 6.1.x | 6.1.21 | Open Source |
| 6.0.x | 6.0.29 | Commercial |
VMware recommends immediate upgrades for open-source users. Commercial customers using Spring Boot 3.1/3.2 should apply hotfixes 3.1.17.1 or 3.2.15.1.
Applications are not vulnerable if they:
Content-Disposition headersfilename(String) instead of charset-specific methodsFilenameUtils.The Spring team released patches within 24 hours of disclosure, with coordinated updates across:
Security researcher Jakob Linskeseder of Dynatrace identified the flaw, highlighting continued risks in header manipulation attacks.
This follows recent vulnerabilities in Microsoft Outlook (CVE-2025-47176) and Windows Secure Boot (CVE-2025-3052), underscoring the need for rigorous input validation.
CVE-2025-41234 demonstrates how subtle API misuse in popular frameworks can create enterprise-wide risks.
Developers using Spring’s ContentDisposition The builder should immediately:
While the attack requires specific preconditions, its potential for client-side code execution warrants prioritization in web application security protocols.
Find this News Interesting! Follow us on Google News, LinkedIn, & X to Get Instant Updates
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…