PT-2024-5870 · Unknown+4 · Active Storage+4

Tyage

·

Published

2024-02-24

·

Updated

2025-03-17

·

CVE-2024-26144

CVSS v2.0

6.4

Medium

VectorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Rails versions 5.2.0 through 7.0.8.0 Rails versions 6.1.0 through 6.1.7.6
Description The issue is related to 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. This may cause users to share sessions, potentially allowing an attacker to receive a user's session or vice versa.
Recommendations For Rails versions 5.2.0 through 7.0.8.0, upgrade to version 7.0.8.1 or configure caching proxies not to cache the Set-Cookie headers. For Rails versions 6.1.0 through 6.1.7.6, upgrade to version 6.1.7.7 or configure caching proxies not to cache the Set-Cookie headers. As a temporary workaround, consider configuring caching proxies to exclude the Set-Cookie headers from being cached.

Exploit

Fix

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2024-7877
BDU:2024-06652
BIT-RAILS-2024-26144
CVE-2024-26144
DSA-5881-1
GHSA-8H22-8CF7-HQ6G
OESA-2024-1364
OESA-2024-1365
OESA-2024-1366
OESA-2024-1367
RHSA-2024:10806

Affected Products

Alt Linux
Active Storage
Debian
Rails
Red Os