CVE-2025-46336: Rack session gets restored after deletion
Vulnerability summary
CVE-2025-46336 is a medium (CVSS 4.2) vulnerability in rack rack-session. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 36.5% of scored vulnerabilities.
Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 12Timeline
- 08-05-2025PublishedVulnerability first disclosed.
- 08-05-2025Last modifiedVulnerability information updated.
Description
Rack::Session is a session management implementation for Rack. In versions starting from 2.0.0 to before 2.1.1, when using the Rack::Session::Pool middleware, and provided the attacker can acquire a session cookie (already a major issue), the session may be restored if the attacker can trigger a long running request (within that same session) adjacent to the user logging out, in order to retain illicit access even after a user has attempted to logout. This issue has been patched in version 2.1.1.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- NVDNIST4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.40%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-362Concurrent Execution using Shared Resource with Improper SynchronizationThe product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
- CWE-367Time-of-check Time-of-use (TOCTOU) Race ConditionThe product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
- CWE-613DEPRECATED: Insufficient Session ExpirationThis entry has been deprecated because it was insufficiently clear. Consider CWE-1462 and its descendants.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard19 products
- logstash-8-with-output-opensearch< 8.18.1-r1
- ruby3.2-rails-7.1< 7.1.5.1-r7
- ruby3.2-rails-7.1-compat< 7.1.5.1-r7
- ruby3.2-rails-7.2< 7.2.2.1-r7
- ruby3.2-rails-7.2-compat< 7.2.2.1-r7
Debian1 product
- ruby-rack-session< 2.1.1-0.1
Opensuse1 product
- rubygem-rack-session&distro=openSUSE Tumbleweed< 2.1.1-1.1 | < 2.1.1-1.3
Rack1 product
- rack-session≥ 2.0.0, < 2.1.1
RubyGems1 product
- rack-session≥ 2.0.0, < 2.1.1
Ubuntu1 product
- ruby-rackAll versions (No fix recorded)
Wolfi1 product
- logstash-8-with-output-opensearch< 8.18.1-r1
7 vendors · 25 products
References
11 links- github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqjX Refsource CONFIRMREPORTAdvisoryWEB
- github.com/rack/rack-sessionPACKAGE