CVE-2024-26144: Activestorage Rails Has Possible Sensitive Session Vulnerability
MODERATECVE-2024-26144 is a MODERATE (CVSS 5.3) rails has possible sensitive session vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Activestorage libraries in the RubyGems ecosystem. The issue involves rails has possible sensitive session information leak in active storage. Remediation is available by upgrading affected packages to version 6.1.7.7, 7.0.8.1.
CVE-2024-26144 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-26144
To remediate this vulnerability, upgrade all affected Activestorage dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade activestorage to 6.1.7.7
Upgrade activestorage to 7.0.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activestorage
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-26144, inspect your project dependencies for Activestorage:
inspect dependencies for activestorage
Analyze the terminal output to locate any version of Activestorage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.7.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Activestorage, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-26144 Affected Activestorage Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activestorage
|
RubyGems |
≥ 5.2.0
< 6.1.7.7
|
6.1.7.7
|
|
activestorage
|
RubyGems |
≥ 7.0.0
< 7.0.8.1
|
7.0.8.1
|
References
Frequently Asked Questions
What is CVE-2024-26144?
Which Activestorage versions are affected?
What version fixes CVE-2024-26144?
Is activestorage affected?
What is the CVSS score of CVE-2024-26144?
What CWE is associated with CVE-2024-26144?
How can I check RubyGems dependencies for CVE-2024-26144?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8h22-8cf7-hq6g",
"modified" : "2025-04-30T17:27:47Z",
"published" : "2024-02-27T21:41:16Z",
"aliases" : [ "CVE-2024-26144" ],
"summary" : "Rails has possible Sensitive Session Information Leak in Active Storage",
"details" : "# Possible Sensitive Session Information Leak in Active Storage\n\nThere is a possible sensitive session information leak in Active Storage. By\ndefault, Active Storage sends a `Set-Cookie` header along with the user's\nsession cookie when serving blobs. It also sets `Cache-Control` to public.\nCertain proxies may cache the Set-Cookie, leading to an information leak.\n\nThis vulnerability has been assigned the CVE identifier CVE-2024-26144.\n\nVersions Affected: >= 5.2.0, < 7.1.0\nNot affected: < 5.2.0, > 7.1.0\nFixed Versions: 7.0.8.1, 6.1.7.7\n\nImpact\n------\nA proxy which chooses to caches this request can cause users to share\nsessions. This may include a user receiving an attacker's session or vice\nversa.\n\nThis was patched in 7.1.0 but not previously identified as a security\nvulnerability.\n\nAll users running an affected release should either upgrade or use one of the\nworkarounds immediately.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nUpgrade to Rails 7.1.X, or configure caching proxies not to cache the\nSet-Cookie headers.\n\nCredits\n-------\n\nThanks to [tyage](https://hackerone.com/tyage) for reporting this!",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activestorage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2.0"
}, {
"fixed" : "6.1.7.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activestorage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rails/rails/security/advisories/GHSA-8h22-8cf7-hq6g"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-26144"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/723f54566023e91060a67b03353e7c03e7436433"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/78fe149509fac5b05e54187aaaef216fbb5fd0d3"
}, {
"type" : "WEB",
"url" : "https://discuss.rubyonrails.org/t/possible-sensitive-session-information-leak-in-active-storage/84945"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26144.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2024-26144.yml"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240510-0013"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-27T21:41:16Z",
"nvd_published_at" : "2024-02-27T16:15:46Z"
}
}