CVE-2025-25184 Details
Description
Rack provides an interface for developing web applications in Ruby. Prior to versions 2.2.11, 3.0.12, and 3.1.10, Rack::CommonLogger can be exploited by crafting input that includes newline characters to manipulate log entries. The supplied proof-of-concept demonstrates injecting malicious content into logs. When a user provides the authorization credentials via Rack::Auth::Basic, if success, the username will be put in env['REMOTE_USER'] and later be used by Rack::CommonLogger for logging purposes. The issue occurs when a server intentionally or unintentionally allows a user creation with the username contain CRLF and white space characters, or the server just want to log every login attempts. If an attacker enters a username with CRLF character, the logger will log the malicious username with CRLF characters into the logfile. Attackers can break log formats or insert fraudulent entries, potentially obscuring real activity or injecting malicious data into log files. Versions 2.2.11, 3.0.12, and 3.1.10 contain a fix.
A log injection vulnerability has been identified in the Rack web application interface for Ruby, specifically within the CommonLogger component. This issue affects Rack versions prior to 2.2.11, as well as versions 3.0.0 through 3.0.12 and 3.1.0 through 3.1.10. The vulnerability arises when a server allows usernames containing newline characters and whitespace to be logged. An attacker can exploit this by injecting a username with CRLF characters, disrupting the log format or introducing false entries, which could obscure genuine activity or inject harmful data into the logs.
Users are advised to update Rack to version 2.2.11, 3.0.12, or 3.1.10, all of which contain the necessary fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-117 | Improper Output Neutralization for Logs | [email protected] |
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rack rack | < 2.2.11 >= 3.0.0, < 3.0.12 >= 3.1.0, < 3.1.10 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 10, 2025 | Initial Analysis | [email protected] |
| Feb 14, 2025 | CVE Modified | [email protected] |
| Feb 12, 2025 | New CVE Received | [email protected] |