CVE-2025-25184
Publication date 12 February 2025
Last updated 25 March 2025
Ubuntu priority
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.
Read the notes from the security team
Why is this CVE low priority?
Only allows inserting newlines into log file in certain circumstances
Status
Package | Ubuntu Release | Status |
---|---|---|
ruby-rack | 24.10 oracular |
Fixed 2.2.7-1.1ubuntu0.1
|
24.04 LTS noble |
Fixed 2.2.7-1ubuntu0.2
|
|
22.04 LTS jammy |
Fixed 2.1.4-5ubuntu1.1+esm1
|
|
20.04 LTS focal |
Fixed 2.0.7-2ubuntu0.1+esm6
|
|
18.04 LTS bionic |
Fixed 1.6.4-4ubuntu0.2+esm7
|
|
16.04 LTS xenial |
Fixed 1.6.4-3ubuntu0.2+esm7
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu ProNotes
mdeslaur
server must allow usernames with line breaks in them, and this only allows an attacker to insert newlines into the log file
References
Related Ubuntu Security Notices (USN)
- USN-7366-1
- Rack vulnerabilities
- 24 March 2025