Loading...
Skip to main content

CVE-2025-25184

MEDIUM

Possible Log Injection in Rack::CommonLogger

Published February 12, 2025Updated February 4, 2026Source: osv

Summary

## Summary `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. ## Details 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. ## Impact Attackers can break log formats or insert fraudulent entries, potentially obscuring real activity or injecting malicious data into log files. ## Mitigation - Update to the latest version of Rack.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update rack to 3.1.10 or later
gem install rack -v 3.1.10
Bundler
Update rack to 3.0.12 or later
gem install rack -v 3.0.12
Bundler
Update rack to 2.2.11 or later
gem install rack -v 2.2.11

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

PackageEcosystemAffectedFixed In
rack
rubygems
3.1.0, 3.1.1, 3.1.2, 3.1.3 (+6 more)3.1.10
rack
rubygems
3.0.0, 3.0.1, 3.0.10, 3.0.11 (+12 more)3.0.12
rack
rubygems
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+107 more)2.2.11

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Frequently Asked Questions

What is CVE-2025-25184?
Possible Log Injection in Rack::CommonLogger This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
How do I check if my project is affected by CVE-2025-25184?
CVE-2025-25184 affects rack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-25184 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.5

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-7g2v-jj9q-g3rg

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies