6.5

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

Modified
AliasesRHSA-2025:7085UBUNTU-CVE-2025-25184DEBIAN-CVE-2025-25184
Published 12-02-2025Last modified 03-11-2025

Vulnerability summary

CVE-2025-25184 is a medium (CVSS 6.5) vulnerability in rack. EPSS estimates a 1.16% chance of exploitation in the next 30 days, higher than 68.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
1.16%
0%100%
Low · -0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 11 · Related 21

Timeline

  1. 12-02-2025
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

11 scores · 8 sources · 2 versions

EPSS trend

Probability

1.16%

Chance of exploitation in the next 30 days

Percentile

68%

Versus all other CVEs

30-day change

Decrease -0.03 pp

From 1.19% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Rack

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard30 products
  • kube-fluentd-operator< 1.18.2-r23
  • kube-fluentd-operator-compat< 1.18.2-r23
  • kube-fluentd-operator-default-config< 1.18.2-r23
  • kube-fluentd-operator-oci-entrypoint< 1.18.2-r23
  • logstash-8-with-output-opensearch< 8.17.2-r1
Wolfi12 products
  • kube-fluentd-operator< 1.18.2-r23
  • kube-fluentd-operator-compat< 1.18.2-r23
  • kube-fluentd-operator-default-config< 1.18.2-r23
  • kube-fluentd-operator-oci-entrypoint< 1.18.2-r23
  • logstash-8-with-output-opensearch< 8.17.2-r1
Redhat2 products
  • pcs< 0:0.11.9-2.el9
  • pcs-snmp< 0:0.11.9-2.el9
Debian1 product
  • ruby-rack< 2.2.13-1~deb12u1 | < 3.1.12-1
Rack1 product
  • rack≥ 3.0, < 3.0.12 | ≥ 3.1, < 3.1.10 | < 2.2.11 | ≥ 3.0.0, < 3.0.12 | ≥ 3.1.0, < 3.1.10
RubyGems1 product
  • rack< 2.2.11 | ≥ 3.0, < 3.0.12 | ≥ 3.1, < 3.1.10
Ubuntu1 product
  • ruby-rack< 1.5.2-3+deb8u3ubuntu1~esm9 | < 1.6.4-3ubuntu0.2+esm7 | < 1.6.4-4ubuntu0.2+esm7 | < 2.0.7-2ubuntu0.1+esm6 | < 2.1.4-5ubuntu1.1+esm1 | < 2.2.7-1ubuntu0.2 | < 3.1.16-0.1

7 vendors · 48 products

References

27 links
Show all 27 references