CVE-2025-25184
Possible Log Injection in Rack::CommonLogger
Also known as GHSA-7g2v-jj9q-g3rg
Mitigation
- Upgrade rack to one of 2.2.11, 3.0.12, 3.1.10 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package rack (< 2.2.11)
- Anyone running rack < 2.2.11; >= 3.0, < 3.0.12; >= 3.1, < 3.1.10
Vulnerability facts
- Affected
- rack < 2.2.11
- Fixed in
- 2.2.11, 3.0.12, 3.1.10
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:POpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Proof of concept
- EPSS
- 1.15% chance of exploitation in 30 days (percentile 67, 2026-11-26)
- CWE
- CWE-93, CWE-117
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-25184. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-25184.md Affected: rack < 2.2.11 Fixed in: 2.2.11, 3.0.12, 3.1.10 Steps: 1. Search this machine and project for rack (RubyGems), rack: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-25184 being exploited?
There is no confirmed exploitation: CVE-2025-25184 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.15% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-25184?
Medium: CVSS 5.7 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2025-25184?
rack < 2.2.11.
Is there a fix for CVE-2025-25184?
Yes. Fixed in 2.2.11, 3.0.12, 3.1.10. Upgrade rack to one of 2.2.11, 3.0.12, 3.1.10 (or later in the same release line).
How do I check if I'm affected by CVE-2025-25184?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.