CVE-2025-46336: rack rack-session Race Condition
Vulnerability summary
CVE-2025-46336 is a medium (CVSS 4.2) Race Condition vulnerability in rack rack-session. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 24.9% of scored vulnerabilities.
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.33%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
+0.01 pp
From 0.32% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')The 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-613Insufficient Session ExpirationAccording to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
Affected systems
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