cve.bz

CVE-2025-25184 rack rack: CRLF Injection

5.7 mediumExploit referenceEPSS 1.2%Fix available

Medium (5.7) in rack rack. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.11, 3.0.12, 3.1.10.

On this page
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.

Severity

CVSS 4.0

5.7 medium
CVSS: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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
CWE-117 Improper Output Neutralization for Logs
OWASP Top 10
A05:2025 Injection, A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-25184 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-25184?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-25184?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-25184 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.11
rack:rackfrom 3.0.0 before 3.0.12
rack:rackfrom 3.1.0 before 3.1.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7g2v-jj9q-g3rgRubyGemsrack<2.2.112.2.11
GHSA-7g2v-jj9q-g3rgRubyGemsrack>=3.0 <3.0.123.0.12
GHSA-7g2v-jj9q-g3rgRubyGemsrack>=3.1 <3.1.103.1.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u3DLA-4090-1
Debian12ruby-rack2.2.13-1~deb12u1DEBIAN-CVE-2025-25184 DSA-5886-1
Debian13, 14ruby-rack3.1.12-1DEBIAN-CVE-2025-25184
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.2UBUNTU-CVE-2025-25184 USN-7366-1
Ubuntu25.04ruby-rack2.2.7-1.1ubuntu0.25.04.2USN-7366-2
Ubuntu25.10, 26.04:LTSruby-rack3.1.16-0.1UBUNTU-CVE-2025-25184
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm9UBUNTU-CVE-2025-25184 USN-7366-1
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm7UBUNTU-CVE-2025-25184 USN-7366-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm7UBUNTU-CVE-2025-25184 USN-7366-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm6UBUNTU-CVE-2025-25184 USN-7366-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.1+esm1UBUNTU-CVE-2025-25184 USN-7366-1
Red Hatenterprise_linux:9::highavailability, enterprise_linux:9::resilientstoragepcs, pcs-snmp0:0.11.9-2.el9RHSA-2025:7085
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 1 morerubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack-1_61.6.8-150000.3.3.1SUSE-SU-2025:0858-1
openSUSETumbleweedrubygem-rack3.1.12-1.1openSUSE-SU-2025:14875-1
openSUSETumbleweedrubygem-rack3.1.18-1.3openSUSE-SU-2026:10358-1
openSUSETumbleweedrubygem-rack-2.22.2.11-1.1openSUSE-SU-2025:14811-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate-impact log injection flaw was found in the rubygem-rack package, which ships in Red Hat Enterprise Linux 9 (the pcs component and the ruby-30, ruby-31, and ruby-33 container images) and is used by other Red Hat offerings, including Red Hat Satellite 6, Red Hat 3scale API Management Platform 2, OpenShift Logging, Red Hat Insights, and Hosted OpenShift, as well as Fedora and EPEL community streams. When a user authenticates via Rack::Auth::Basic, the supplied username is stored in the request environment and later written to the log file by Rack::CommonLogger. If an application allows usernames containing carriage return and line feed (CRLF) or other whitespace characters, or logs every login attempt, an attacker who controls such a username can inject forged entries into the log file, breaking log formats, obscuring real activity, or inserting malicious data into log files. The impact is limited to the integrity of log data: Red Hat and NIST both rate this flaw Moderate with a CVSS 3.1 base score of 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N), in line with the upstream CVSS 4.0 score of 5.7, also Moderate. Red Hat Enterprise Linux 10 is not affected because the vulnerable code is not present in that release. For the affected Red Hat Enterprise Linux 9 components and other delegated product and community streams, fixes are being pursued by the respective maintainers; for Red Hat 3scale API Management Platform 2 the maintainers decided not to fix the issue. For Red Hat Satellite 6.16 and 6.17 and the Red Hat Insights compliance-backend the fix is deferred, and the residual risk is limited to manipulation of log content by an authenticated user, with no direct impact on confidentiality or availability of the system itself.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9pcs-0:0.11.9-2.el9Fixed 2025-05-13RHSA-2025:7085
RHOL-5.9-RHEL-9openshift-logging/cluster-logging-operator-bundle:v5.9.12-13Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/cluster-logging-rhel9-operator:v5.9.12-6Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/eventrouter-rhel9:v0.4.0-341Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/fluentd-rhel9:v5.9.12-3Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/log-file-metric-exporter-rhel9:v1.1.0-322Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/logging-loki-rhel9:v3.3.2-16Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/logging-view-plugin-rhel9:v5.9.12-3Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/loki-operator-bundle:v5.9.12-11Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/loki-rhel9-operator:v5.9.12-4Fixed 2025-03-05RHSA-2025:1985
RHOL-5.9-RHEL-9openshift-logging/lokistack-gateway-rhel9:v0.1.0-735Fixed 2025-03-05RHSA-2025:1985
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Will not fix
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 7pcsOut of support scope
Red Hat Enterprise Linux 8pcsOut of support scope
Red Hat Enterprise Linux 9ruby-30Affected
Red Hat Enterprise Linux 9ruby-31Affected
Red Hat Enterprise Linux 9ruby-33Affected
Red Hat Satellite 6rubygem-rackFix deferred
Red Hat Storage 3rubygem-rackOut of support scope
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-25184.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-268 Audit Log Manipulation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON