CVE Vulnerabilities

CVE-2025-25184

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Published: Feb 12, 2025 | Modified: Nov 03, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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.

Weakness

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.

Affected Software

NameVendorStart VersionEnd Version
RackRack*2.2.11 (excluding)
RackRack3.0.0 (including)3.0.12 (excluding)
RackRack3.1.0 (including)3.1.10 (excluding)
Red Hat Enterprise Linux 9RedHatpcs-0:0.11.9-2.el9*
RHOL-5.9-RHEL-9RedHatopenshift-logging/cluster-logging-operator-bundle:v5.9.12-13*
RHOL-5.9-RHEL-9RedHatopenshift-logging/cluster-logging-rhel9-operator:v5.9.12-6*
RHOL-5.9-RHEL-9RedHatopenshift-logging/eventrouter-rhel9:v0.4.0-341*
RHOL-5.9-RHEL-9RedHatopenshift-logging/fluentd-rhel9:v5.9.12-3*
RHOL-5.9-RHEL-9RedHatopenshift-logging/log-file-metric-exporter-rhel9:v1.1.0-322*
RHOL-5.9-RHEL-9RedHatopenshift-logging/logging-loki-rhel9:v3.3.2-16*
RHOL-5.9-RHEL-9RedHatopenshift-logging/logging-view-plugin-rhel9:v5.9.12-3*
RHOL-5.9-RHEL-9RedHatopenshift-logging/loki-operator-bundle:v5.9.12-11*
RHOL-5.9-RHEL-9RedHatopenshift-logging/loki-rhel9-operator:v5.9.12-4*
RHOL-5.9-RHEL-9RedHatopenshift-logging/lokistack-gateway-rhel9:v0.1.0-735*
RHOL-5.9-RHEL-9RedHatopenshift-logging/opa-openshift-rhel9:v0.1.0-351*
RHOL-5.9-RHEL-9RedHatopenshift-logging/vector-rhel9:v0.34.1-33*
Ruby-rackUbuntudevel*
Ruby-rackUbuntuesm-apps/bionic*
Ruby-rackUbuntuesm-apps/focal*
Ruby-rackUbuntuesm-apps/jammy*
Ruby-rackUbuntuesm-apps/xenial*
Ruby-rackUbuntuesm-infra-legacy/trusty*
Ruby-rackUbuntufocal*
Ruby-rackUbuntujammy*
Ruby-rackUbuntunoble*
Ruby-rackUbuntuoracular*
Ruby-rackUbuntuplucky*
Ruby-rackUbuntuquesting*
Ruby-rackUbuntuupstream*

Potential Mitigations

References