CVE-2025-25184Possible Log Injection in Rack::CommonLogger
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.
What to do
Fixed builds are available from Debian, Red Hat, RubyGems, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | ruby-rack | Fixed | 3.1.16-0.1 | UBUNTU-CVE-2025-25184 |
| Ubuntu 25.10 | ruby-rack | Fixed | 3.1.16-0.1 | UBUNTU-CVE-2025-25184 |
| Ubuntu 24.04 | ruby-rack | Fixed | 2.2.7-1ubuntu0.2 | UBUNTU-CVE-2025-25184 |
| Ubuntu 22.04 | ruby-rack | Fix pending | 2.1.4-5ubuntu1.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-25184 |
| Ubuntu 20.04 | ruby-rack | Fix pending | 2.0.7-2ubuntu0.1+esm6 (Ubuntu Pro) | UBUNTU-CVE-2025-25184 |
| Ubuntu 18.04 | ruby-rack | Fix pending | 1.6.4-4ubuntu0.2+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-25184 |
| Ubuntu 16.04 | ruby-rack | Fix pending | 1.6.4-3ubuntu0.2+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-25184 |
| Ubuntu 14.04 | ruby-rack | Fix pending | 1.5.2-3+deb8u3ubuntu1~esm9 (Ubuntu Pro) | UBUNTU-CVE-2025-25184 |
| Debian 14 | ruby-rack | Fixed | 3.1.12-1 | DEBIAN-CVE-2025-25184 |
| Debian 13 | ruby-rack | Fixed | 3.1.12-1 | DEBIAN-CVE-2025-25184 |
| Debian 12 | ruby-rack | Fixed | 2.2.13-1~deb12u1 | DEBIAN-CVE-2025-25184 |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Not affected | ||
| Red Hat Enterprise Linux 10 | pcs | Not affected | ||
| Red Hat Enterprise Linux 10 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs | Fixed | 0:0.11.9-2.el9 | RHSA-2025:7085 |
| Red Hat Enterprise Linux 9 | pcs-snmp | Fixed | 0:0.11.9-2.el9 | RHSA-2025:7085 |
| Red Hat Enterprise Linux 8 | pcs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | pcs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | pcs-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | python-clufter | Will not fix Out of support scope | ||
| RubyGems library | rack | Fixed | 3.0.12 | GHSA-7g2v-jj9q-g3rg |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rack: affected: < 2.2.11, >= 3.0, < 3.0.12, >= 3.1, < 3.1.10
References
- https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg
- https://github.com/rack/rack/commit/074ae244430cda05c27ca91cda699709cfb3ad8e
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.