Loading...
Skip to main content

CVE-2024-26144

MEDIUM

Rails has possible Sensitive Session Information Leak in Active Storage

Published February 27, 2024Updated April 30, 2025Source: osv

Summary

# Possible Sensitive Session Information Leak in Active Storage 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. This vulnerability has been assigned the CVE identifier CVE-2024-26144. Versions Affected: >= 5.2.0, < 7.1.0 Not affected: < 5.2.0, > 7.1.0 Fixed Versions: 7.0.8.1, 6.1.7.7 Impact ------ A proxy which chooses to caches this request can cause users to share sessions. This may include a user receiving an attacker's session or vice versa. This was patched in 7.1.0 but not previously identified as a security vulnerability. All users running an affected release should either upgrade or use one of the workarounds immediately. Releases -------- The fixed releases are available at the normal locations. Workarounds ----------- Upgrade to Rails 7.1.X, or configure caching proxies not to cache the Set-Cookie headers. Credits ------- Thanks to [tyage](https://hackerone.com/tyage) for reporting this!

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activestorage to 6.1.7.7 or later
gem install activestorage -v 6.1.7.7
Bundler
Update activestorage to 7.0.8.1 or later
gem install activestorage -v 7.0.8.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
activestorage
rubygems
5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+85 more)6.1.7.7
activestorage
rubygems
7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+16 more)7.0.8.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-200
    Information ExposureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Frequently Asked Questions

What is CVE-2024-26144?
Rails has possible Sensitive Session Information Leak in Active Storage This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2024-26144?
CVE-2024-26144 affects activestorage. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-26144 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-8h22-8cf7-hq6g
BIT-rails-2024-26144

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies