Bug 2345301 (CVE-2025-25184) - CVE-2025-25184 rubygem-rack: Possible Log Injection in Rack::CommonLogger
Summary: CVE-2025-25184 rubygem-rack: Possible Log Injection in Rack::CommonLogger
Keywords:
Status: NEW
Alias: CVE-2025-25184
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2345709 2345710 2345711 2345712
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-12 17:01 UTC by OSIDB Bzimport
Modified: 2025-05-13 11:08 UTC (History)
25 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:7085 0 None None None 2025-05-13 09:57:04 UTC

Description OSIDB Bzimport 2025-02-12 17:01:27 UTC
Rack provides an interface for developing web applications in Ruby. Prior to versions 2.2.11, 3.0.12, and 3.1.11, 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.11 contain a fix.

Comment 5 errata-xmlrpc 2025-05-13 09:57:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:7085 https://access.redhat.com/errata/RHSA-2025:7085


Note You need to log in before you can comment on or make changes to this bug.