CVE-2024-26144 — Vulnerability in activestorage — CVE Details
Rails has possible Sensitive Session Information Leak in Active Storage
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.37%). Schedule for your next planned update.
Does your project use an affected activestorage version?
Paste your Gemfile.lock to check it for CVE-2024-26144 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 for reporting this!
Advisory Timeline
- First published February 27, 2024 (1003 days ago).
- Last revised September 10, 2026 — 925 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activestorage -v 6.1.7.7
gem install activestorage -v 7.0.8.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| activestorage RubyGems · Affected: 5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+85 more) | 6.1.7.7 |
| activestorage RubyGems · Affected: 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-200Information ExposureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/rails/rails/security/advisories/GHSA-8h22-8cf7-hq6gWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-26144ADVISORY
- https://github.com/rails/rails/commit/723f54566023e91060a67b03353e7c03e7436433WEB
- https://github.com/rails/rails/commit/78fe149509fac5b05e54187aaaef216fbb5fd0d3WEB
- https://discuss.rubyonrails.org/t/possible-sensitive-session-information-leak-in-active-storage/84945WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26144.ymlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2024-26144.ymlWEB
- https://security.netapp.com/advisory/ntap-20240510-0013WEB
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. It has a 1.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-26144 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 71.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-122006CRITICAL
Active Storage: Possible arbitrary file write and read in image analysis
- CVE-2022-21831CRITICAL
Possible code injection vulnerability in Rails / Active Storage
- CVE-2026-66066CRITICAL
Active Storage has possible arbitrary file read and remote code execution in Active Storage variant processing
- CVE-2026-33195HIGH
Rails Active Storage has possible Path Traversal in DiskService
- CVE-2026-126084MEDIUM
Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control
- CVE-2026-126071MEDIUM
Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming
- CVE-2026-33202MEDIUM
Rails Active Storage has possible glob injection in its DiskService
- CVE-2018-16477MEDIUM
Exposure of Sensitive Information to an Unauthorized Actor in activestorage