Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack
  4. ›
  5. CVE-2025-25184

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

February 12, 2025 (updated February 18, 2025)

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.

References

  • github.com/advisories/GHSA-7g2v-jj9q-g3rg
  • github.com/rack/rack
  • github.com/rack/rack/commit/074ae244430cda05c27ca91cda699709cfb3ad8e
  • github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-25184.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-25184

Code Behaviors & Features

Detect and mitigate CVE-2025-25184 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.11, all versions starting from 3.0 before 3.0.12, all versions starting from 3.1 before 3.1.10

Fixed versions

  • 2.2.11
  • 3.0.12
  • 3.1.10

Solution

Upgrade to versions 2.2.11, 3.0.12, 3.1.10 or above.

Weakness

  • CWE-117: Improper Output Neutralization for Logs
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

gem/rack/CVE-2025-25184.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:27 +0000.