CVE-2025-25184: rack CRLF Injection
Vulnerability summary
CVE-2025-25184 is a medium (CVSS 6.5) CRLF Injection vulnerability in rack. EPSS estimates a 1.19% chance of exploitation in the next 30 days, higher than 67.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 11 · Related 21Timeline
- 12-02-2025PublishedVulnerability first disclosed.
- 03-11-2025Last 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- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:PDiffers
- OSV · WolfiEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:PDiffers
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:PDiffers
- OSV · RubygemsEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:PDiffers
- NVDNIST5.7MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · Red hatEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- OSV · RubygemsEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
1.19%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
0.00 pp
From 1.19% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundRack
Maturity: poc
Weaknesses
CWE · root cause- CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
- CWE-117Improper Output Neutralization for LogsThe product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
Affected systems
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- github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rgX Refsource CONFIRMARTICLEREPORTAdvisoryWEBExploitVendor Advisory
- github.com/rack/rack/commit/074ae244430cda05c27ca91cda699709cfb3ad8eX Refsource MISCARTICLEFIXWEBPatch
Show all 27 references
- github.com/rack/rackPACKAGE