CVE-2025-46336 Details
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.
A vulnerability exists in Rack::Session versions 2.0.0 prior to 2.1.1, specifically within the Rack::Session::Pool middleware. This issue allows an attacker who has obtained a session cookie to restore a deleted session. The vulnerability arises when the attacker triggers a long-running request in the same session just before the user logs out. As a result, the attacker can regain access to the session even after logout.
Users are advised to update Rack::Session to version 2.1.1 or later. Alternatively, ensure that sessions are invalidated atomically by marking them as logged out with a flag, or implement a custom session store that tracks invalidation timestamps.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 8, 2025CISA-ADP
Assessed May 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g | [email protected] | AdvisoryBundleRemedyVendor |
| https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b | [email protected] | Source CodeVendor |
| https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| CWE-613 | Insufficient Session Expiration | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rack::Session::Pool | All versions |
CPE
Remediation
| |
| Rack | >= 2.0.0, < 2.1.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 8, 2025 | New CVE Received | [email protected] |
Volerion