CVE-2024-26144 Possible Sensitive Session Information Leak in Active Storage

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
rails BitnamiFrom 5.2.06.1.8, 7.0.9
activestorage RubyGemsFrom 5.2.06.1.7.7
activestorage RubyGemsFrom 5.2.06.1.7.7
activestorage RubyGemsFrom 7.0.07.0.8.1
activestorage RubyGemsFrom 7.0.07.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.

All Rubyonrails Rails vulnerabilities

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.

Is CVE-2024-26144 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free