Vulnerability
CVE-2025-25184
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.
77 advisories report this vulnerability, across 10 ecosystems.
Advisories
- CGA-237c-4rjm-rx9w
- CGA-2458-m4f8-m7cp
- CGA-2fgc-6329-5224
- CGA-2rc8-8g4j-pg83
- CGA-3r23-8ghq-qhh5
- CGA-3x47-95v6-28r2
- CGA-4h74-78f3-8fr2
- CGA-4r76-3m36-4qxv
- CGA-4xqq-6hhw-8gmg
- CGA-578x-8gfx-jrcp
- CGA-5hh9-mwp4-w7qp
- CGA-5xrj-vc5g-vg2m
- CGA-62rf-3j2q-j4vx
- CGA-682q-v4p4-rr8f
- CGA-6p32-4386-7g84
- CGA-7p8c-6rf2-vc2c
- CGA-825h-7353-pgmp
- CGA-837q-2w6p-r7h9
- CGA-8v56-r3w3-gxc7
- CGA-8x3j-8jwf-32x5
- CGA-9c65-c7w7-hh87
- CGA-9gh8-vghj-38v3
- CGA-9rvc-rwhq-g35v
- CGA-c93r-pq3j-pphr
- CGA-cq5f-8p36-376q
- CGA-f58r-4vhf-wv4q
- CGA-f842-mjq4-4xvr
- CGA-fqcm-xhj3-phmc
- CGA-fwp8-vq79-3hqw
- CGA-g82r-f54m-q2vg
- CGA-g8c4-866q-7c79
- CGA-g8vx-mxw8-fhwh
- CGA-gh84-rwfx-5grr
- CGA-hrg2-w658-j5rw
- CGA-j2qv-56f8-vxfx
- CGA-j35x-mp69-jr5p
- CGA-j393-jm56-wg9x
- CGA-j944-2qq9-8rc6
- CGA-jhcq-4qhr-6qfc
- CGA-jhpf-45wg-5rrg
- CGA-jjg9-f7jv-w5m2
- CGA-jrq5-gwjc-cmw8
- CGA-m59p-xmvq-6pcv
- CGA-mqpw-4cvj-xr6r
- CGA-p398-3hww-xxv6
- CGA-p66w-wjvf-v9v7
- CGA-q9j8-phmg-2c24
- CGA-qwg8-4xp4-237p
- CGA-qwx9-m7m2-mvr5
- CGA-r3hf-r5ph-3g3p
- CGA-rj57-j7rm-hh4m
- CGA-w4hh-gf6x-6f5x
- CGA-wp99-3x9c-3h43
- CGA-wpwg-8f7c-x6x5
- CGA-wvmq-3f77-6jqr
- CGA-x892-rv7x-q2pm
- CGA-x8r3-wq57-j22r
- CGA-x92j-9m9w-p537
- CGA-xf6j-33rg-m49q
- CGA-xgh5-x2vr-pq2x
-
DEBIAN-CVE-2025-25184
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…
-
DLA-4090-1
ruby-rack - security update
-
DSA-5886-1
ruby-rack - security update
-
ELSA-2025-7085
ELSA-2025-7085: pcs security update (MODERATE)
-
GHSA-7g2v-jj9q-g3rg
Possible Log Injection in Rack::CommonLogger
-
OESA-2025-1299
rubygem-rack security update
-
RHSA-2025:7085
Red Hat Security Advisory: pcs security update
-
RHVEX-CVE-2025-25184
rubygem-rack: Possible Log Injection in Rack::CommonLogger
-
SUSE-SU-2025:0858-1
Security update for rubygem-rack-1_6
-
SUSE-SU-2025:0874-1
Security update for rubygem-rack
-
UBUNTU-CVE-2025-25184
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…
-
USN-7366-1
ruby-rack vulnerabilities
-
USN-7366-2
ruby-rack vulnerabilities
-
openSUSE-SU-2025:14811-1
ruby3.4-rubygem-rack-2.2-2.2.11-1.1 on GA media
-
openSUSE-SU-2025:14875-1
ruby3.4-rubygem-rack-3.1.12-1.1 on GA media
-
openSUSE-SU-2026:10286-1
ruby4.0-rubygem-rack-2.2-2.2.22-1.1 on GA media
-
openSUSE-SU-2026:10358-1
ruby4.0-rubygem-rack-3.1.18-1.3 on GA media