Skip to main content

Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')

CVE-2025-41234

Severity Medium
Score 6.5/10

Summary

In Spring Framework, versions 6.0.x through 6.0.28, 6.1.x through 6.1.20, 6.2.x through 6.2.7, and 7.x through 7.0.0-m5, 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: 1. The header is prepared with org.springframework.http.ContentDisposition. 2. The filename is set via ContentDisposition.Builder#filename(String, Charset). 3. The value for the filename is derived from user-supplied input. 4. The application does not sanitize the user-supplied input. 5. 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: 1. The application does not set a Content-Disposition response header. 2. The header is not prepared with org.springframework.http.ContentDisposition. 3. The filename is set via one of: ContentDisposition.Builder#filename(String), or ContentDisposition.Builder#filename(String, ASCII) 4. The filename is not derived from user-supplied input. 5. The filename is derived from user-supplied input but sanitized by the application. 6. The attacker cannot inject malicious content in the downloaded content of the response.

  • HIGH
  • NETWORK
  • LOW
  • CHANGED
  • REQUIRED
  • LOW
  • HIGH
  • NONE

CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')

The software receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.

Advisory Timeline

  • Published