CWE
93 117
EPSS
0.043%
Advisory Published
Advisory Published
Updated

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

First published: Wed Feb 12 2025(Updated: )

## Summary `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. ## Details 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. ## Impact Attackers can break log formats or insert fraudulent entries, potentially obscuring real activity or injecting malicious data into log files. ## Mitigation - Update to the latest version of Rack.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Rack CommonLogger<2.2.11<3.0.12<3.1.11
rubygems/rack>=3.1<3.1.11
3.1.11
rubygems/rack>=3.0<3.0.12
3.0.12
rubygems/rack<2.2.11
2.2.11

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-25184?

    CVE-2025-25184 is classified as a medium severity vulnerability due to its potential for log manipulation.

  • How do I fix CVE-2025-25184?

    To fix CVE-2025-25184, upgrade to Rack versions 2.2.11, 3.0.12, or 3.1.11 or later.

  • Which versions of Rack are affected by CVE-2025-25184?

    CVE-2025-25184 affects versions of Rack prior to 2.2.11, 3.0.12, and 3.1.11.

  • What type of vulnerability is CVE-2025-25184?

    CVE-2025-25184 is a log injection vulnerability that can manipulate log entries.

  • Is there a proof-of-concept available for CVE-2025-25184?

    Yes, a proof-of-concept demonstrating the exploitation of CVE-2025-25184 is available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203