CVE-2024-26144 Possible Sensitive Session Information Leak in Active Storage
Attackers can leak sensitive session information via cached Set-Cookie headers in Active Storage blob responses, affecting Ruby on Rails applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26144?
CVE-2024-26144 is a medium-severity vulnerability in Rubyonrails Rails, published on 27 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Rails is a web-application framework. Starting with version 5.2.0, there is a possible sensitive session information leak in Active Storage. By default, Active Storage sends a Set-Cookie header along with the user's session cookie when serving blobs. It also sets Cache-Control to public. Certain proxies may cache the Set-Cookie, leading to an information leak. The vulnerability is fixed in 7.0.8.1 and 6.1.7.7.
Weakness: CWE-200
Which versions are affected by CVE-2024-26144?
5 open source packages ship an affected version, including rails and activestorage. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rails Bitnami | From 5.2.0 | 6.1.8, 7.0.9 |
activestorage RubyGems | From 5.2.0 | 6.1.7.7 |
activestorage RubyGems | From 5.2.0 | 6.1.7.7 |
activestorage RubyGems | From 7.0.0 | 7.0.8.1 |
activestorage RubyGems | From 7.0.0 | 7.0.8.1 |
Products include Rubyonrails Rails.
How do I fix CVE-2024-26144?
Upgrade rails to a fixed version for your release line: 6.1.8 or 7.0.9.
Is CVE-2024-26144 being exploited?
There is no known exploitation of CVE-2024-26144 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as BIT-rails-2024-26144, DEBIAN-CVE-2024-26144, GHSA-8h22-8cf7-hq6g, OESA-2024-1364, OESA-2024-1365, OESA-2024-1366 and 2 more.