{"id":"CVE-2025-46336","published":"2025-05-08T19:26:01Z","modified":"2025-05-08T20:18:38Z","title":"Rack session gets restored after deletion","vendor":"rack","product":"rack-session","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.34511,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"},{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"references":[{"url":"https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b","tags":["x_refsource_MISC"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":6.9},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack-session","versions":[">= 2.0.0, < 2.1.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-08T20:18:09.543353Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack-session","vulnerableRanges":[">=2.0.0, <2.1.1"],"patched":["2.1.1"],"from":["GHSA-9j94-67jr-4cqj"],"provenance":"source"}],"summary":{"text":"The flaw is in the rack-session component of the Rack project: when the Rack::Session::Pool middleware is used, a session can be restored after the user has logged out, due to a race condition. An attacker who already holds a session cookie can exploit this by triggering a long-running request within that same session adjacent to the user's logout, which lets them retain access after logout; exploitation requires the attacker to hold a session cookie, to be able to send requests on that session over the network, and to time a long-running request around the logout.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:25Z"},"euvd":{"id":"EUVD-2025-14006","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rack-cve-2025-32441","parents":[{"from":"CVE-2025-32441","to":"CVE-2025-46336","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-vpfw-47h7-xj4g","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-9j94-67jr-4cqj","via":"reference","url":"https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g"},{"kind":"osv-related","provenance":"source","id":"GHSA-vpfw-47h7-xj4g","via":"reference","url":"https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj"}]}],"packageHistory":[{"cve":"CVE-2025-46336","published":"2025-05-08","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-39324","published":"2026-04-07","fixed":"2.1.2","kev":false,"link":{"from":"CVE-2025-46336","to":"CVE-2026-39324","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack-session","fromFixed":"2.1.1","toFixed":"2.1.2","daysApart":334}]}}],"package":"RubyGems:rack-session"}}