CRLF injection in Rack - CVE-2025-25184

 

CRLF injection in Rack - CVE-2025-25184

Published: March 17, 2025


Vulnerability identifier: #VU105794
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-25184
CWE-ID: CWE-93
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Rack
Affected software:
Rack

Detailed vulnerability description

The vulnerability allows a remote user to manipulate data log entries.

The vulnerability exists due to insufficient validation of attacker-supplied data in Rack::CommonLogger. A remote user can pass specially crafted authorization credentials containing CR-LF characters to the Rack::Auth::Basic method, which stores this info into the to the env['REMOTE_USER'] variable. If the application accepts CR-LF characters in user name, a remote user can manipulate data log entries.


How to mitigate CVE-2025-25184

Install updates from vendor's website.

Sources