# CVE-2025-25184: Possible Log Injection in Rack::CommonLogger

- Priority: **Routine**
- Reason: Not severe (CVSS 5.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-12 · Modified: 2025-11-03
- Aliases: RHSA-2025:7085, UBUNTU-CVE-2025-25184, DEBIAN-CVE-2025-25184, CGA-2458-m4f8-m7cp, CGA-2rc8-8g4j-pg83, CGA-3x47-95v6-28r2, CGA-4r76-3m36-4qxv, CGA-4xqq-6hhw-8gmg, CGA-5xrj-vc5g-vg2m, CGA-7p8c-6rf2-vc2c, CGA-825h-7353-pgmp, CGA-8v56-r3w3-gxc7, CGA-9c65-c7w7-hh87, CGA-9gh8-vghj-38v3, CGA-f58r-4vhf-wv4q, CGA-f842-mjq4-4xvr, CGA-fqcm-xhj3-phmc, CGA-g8vx-mxw8-fhwh, CGA-gh84-rwfx-5grr, CGA-j393-jm56-wg9x, CGA-j944-2qq9-8rc6, CGA-mqpw-4cvj-xr6r, CGA-p398-3hww-xxv6, CGA-w4hh-gf6x-6f5x, CGA-wp99-3x9c-3h43, CGA-wvmq-3f77-6jqr, CGA-xgh5-x2vr-pq2x, CGA-237c-4rjm-rx9w, CGA-2fgc-6329-5224, CGA-3r23-8ghq-qhh5, CGA-4h74-78f3-8fr2, CGA-578x-8gfx-jrcp, CGA-5hh9-mwp4-w7qp, CGA-62rf-3j2q-j4vx, CGA-682q-v4p4-rr8f, CGA-6p32-4386-7g84, CGA-837q-2w6p-r7h9, CGA-8x3j-8jwf-32x5, CGA-9rvc-rwhq-g35v, CGA-c93r-pq3j-pphr, CGA-cq5f-8p36-376q, CGA-fwp8-vq79-3hqw, CGA-g82r-f54m-q2vg, CGA-g8c4-866q-7c79, CGA-hrg2-w658-j5rw, CGA-j2qv-56f8-vxfx, CGA-j35x-mp69-jr5p, CGA-jhcq-4qhr-6qfc, CGA-jhpf-45wg-5rrg, CGA-jjg9-f7jv-w5m2, CGA-jrq5-gwjc-cmw8, CGA-m59p-xmvq-6pcv, CGA-p66w-wjvf-v9v7, GHSA-7g2v-jj9q-g3rg, CGA-q9j8-phmg-2c24, CGA-qwg8-4xp4-237p, CGA-qwx9-m7m2-mvr5, CGA-r3hf-r5ph-3g3p, CGA-rj57-j7rm-hh4m, CGA-wpwg-8f7c-x6x5, CGA-x892-rv7x-q2pm, CGA-x8r3-wq57-j22r, CGA-x92j-9m9w-p537, CGA-xf6j-33rg-m49q
- Record: https://cvemate.com/vulnerability/CVE-2025-25184 · JSON: https://cvemate.com/vulnerability/CVE-2025-25184/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.16%, percentile 68.202%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 48)

- chainguard kube-fluentd-operator (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-compat (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-default-config (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-oci-entrypoint (Chainguard): \< 1.18.2-r23
- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.17.2-r1
- chainguard ruby3.2-rack (Chainguard): \< 3.1.10-r0
- chainguard ruby3.2-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.2-rails-7.1 (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.2-rails-7.1-compat (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.2-rails-7.2 (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.2-rails-7.2-compat (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.2-rails-8.0 (Chainguard): \< 8.0.1-r2
- chainguard ruby3.2-rails-8.0-compat (Chainguard): \< 8.0.1-r2
- chainguard ruby3.3-rack (Chainguard): \< 3.1.10-r0
- chainguard ruby3.3-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.3-rails-7.1 (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.3-rails-7.1-compat (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.3-rails-7.2 (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.3-rails-7.2-compat (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.3-rails-8.0 (Chainguard): \< 8.0.1-r2

## References (first 20 of 27)

- <https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg>
- <https://github.com/rack/rack/commit/074ae244430cda05c27ca91cda699709cfb3ad8e>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html>
- <https://access.redhat.com/errata/RHSA-2025:7085>
- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.6_release_notes/index>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2345301>
- <https://issues.redhat.com/browse/RHEL-16232>
- <https://issues.redhat.com/browse/RHEL-44420>
- <https://issues.redhat.com/browse/RHEL-55441>
- <https://issues.redhat.com/browse/RHEL-61738>
- <https://issues.redhat.com/browse/RHEL-61901>
- <https://issues.redhat.com/browse/RHEL-69040>
- <https://issues.redhat.com/browse/RHEL-78653>
- <https://issues.redhat.com/browse/RHEL-79055>
- <https://issues.redhat.com/browse/RHEL-79160>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7085.json>
- <https://access.redhat.com/security/cve/CVE-2025-25184>
- <https://www.cve.org/CVERecord?id=CVE-2025-25184>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25184>

---

Data as of 2026-12-05T09:44:19.114Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
