Session cookie disclosure through cacheable Rails Active Storage responses
CVE-2024-26144 is a sensitive session information disclosure vulnerability in Rails Active Storage, affecting versions starting with 5.2.0. Active Storage blob responses can include a Set-Cookie header containing a user's session cookie while also setting Cache-Control to public. Shared caching proxies that retain these headers may subsequently deliver the cookie to other users. The original vulnerability is fixed in Rails 6.1.7.7, 7.0.8.1, and 7.1.0.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A shared cache may disclose one user's session cookie to another requester of the same Active Storage resource, potentially enabling session hijacking and unauthorized access to information or functionality available to that session. Conversely, a cached response containing an attacker's session cookie may cause other users to adopt the attacker's session.
If you can’t patch tonight, do this now.
Configure shared caching proxies not to cache responses carrying Set-Cookie headers. For the separately disclosed cookie-rewriting bypass, completing cookie rotation or serializer migration and removing the corresponding rotation or migration configuration is an additional mitigation.
Patch, then assume compromise.
Upgrade affected Rails installations to 6.1.7.7, 7.0.8.1, or 7.1.0 or later, as appropriate for the deployment branch. A separately disclosed bypass of the original fix affects automatic cookie rewriting when cookie rotation or hybrid serializer migration is configured; it is not a new assignment of CVE-2024-26144. For that bypass, upgrade Action Pack to 8.0.5.2 or later in the applicable 8.0 branch, or 8.1.4.1 or later, or apply the corresponding branch patch.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.