Possible Log Injection in Rack::CommonLogger
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 3 fixed, 6 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rack | rack | before 2.2.11; 3.0 to before 3.0.12; 3.1 to before 3.1.10 | 2.2.11, 3.0.12, 3.1.10 | Patch available | CNA |
| — | rack (RubyGems) | before 2.2.11 | 2.2.11 | Patch available | GHSA-7g2v-jj9q-g3rg |
| — | rack (RubyGems) | 3.0 to before 3.0.12 | 3.0.12 | Patch available | GHSA-7g2v-jj9q-g3rg |
| — | rack (RubyGems) | 3.1 to before 3.1.10 | 3.1.10 | Patch available | GHSA-7g2v-jj9q-g3rg |
- rack Vendorrack Affected before 2.2.11; 3.0 to before 3.0.12; 3.1 to before 3.1.10 Fixed in 2.2.11, 3.0.12, 3.1.10 Patch available CNA
- rack (RubyGems) Vendor— Affected before 2.2.11 Fixed in 2.2.11 Patch available GHSA-7g2v-jj9q-g3rg
- rack (RubyGems) Vendor— Affected 3.0 to before 3.0.12 Fixed in 3.0.12 Patch available GHSA-7g2v-jj9q-g3rg
- rack (RubyGems) Vendor— Affected 3.1 to before 3.1.10 Fixed in 3.1.10 Patch available GHSA-7g2v-jj9q-g3rg
Remediation
- Fix · CNA rack (rack) Fixed in 2.2.11, 3.0.12, 3.1.10
- Fix · GHSA-7g2v-jj9q-g3rg rack (RubyGems) Fixed in 2.2.11 Advisory →
- Fix · GHSA-7g2v-jj9q-g3rg rack (RubyGems) Fixed in 3.0.12 Advisory →
- Fix · GHSA-7g2v-jj9q-g3rg rack (RubyGems) Fixed in 3.1.10 Advisory →
Red Hat 2 advisories
- RHSA-2025:7085 Released 2025-05-13 · Red Hat rating Moderatepcs security update
- Red Hat Enterprise Linux High Availability (v. 9) pcs-0.11.9-2.el9, pcs-snmp-0.11.9-2.el9
- Red Hat Enterprise Linux Resilient Storage (v. 9) pcs-0.11.9-2.el9, pcs-snmp-0.11.9-2.el9
- RHSA-2025:1985 Released 2025-03-05 · Red Hat rating ModerateLogging for Red Hat OpenShift - 5.9.12
- RHOL 5.9 for RHEL 9 openshift-logging/cluster-logging-operator-bundle, openshift-logging/cluster-logging-rhel9-operator, openshift-logging/eventrouter-rhel9 +9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat Storage 3 | Affected | No fix planned: Out of support scope |
| RHOL 5.9 for RHEL 9 | Fixed | RHSA-2025:1985 |
| Red Hat Enterprise Linux High Availability (v. 9) | Fixed | RHSA-2025:7085 |
| Red Hat Enterprise Linux Resilient Storage (v. 9) | Fixed | RHSA-2025:7085 |
Not affected: 1 product
- Red Hat Enterprise Linux 10
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25184
- 2026-10-03 Alias added: GHSA-7g2v-jj9q-g3rg
References
More Rack vulnerabilities
- TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
- TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
- TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
- TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2025-38165 Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion) CVSS 3.1HIGH 7.5
- TI-2025-38163 Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion) CVSS 3.1HIGH 7.5
Sources
- CVE-2025-25184 · CVE Program
- CVE-2025-25184 · NVD
- FIRST EPSS
- GHSA-7g2v-jj9q-g3rg · GitHub Advisory Database · CC BY 4.0
- CVE-2025-25184 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences