CVE-2025-46336 Rack session gets restored after deletion
Attackers can retain illicit access after user logout via a race condition in Rack session pool, requiring a long-running request and stolen cookie.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-46336?
CVE-2025-46336 is a medium-severity vulnerability in rack-session, published on 8 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-46336?
2 open source packages ship an affected version, including rack-session.
| Package | Affected | Fixed in |
|---|---|---|
rack-session RubyGems | From 2.0.0 | 2.1.1 |
rack-session RubyGems | From 2.0.0 | 2.1.1 |
Linux distribution packages (2)
rubygem-rack-session openSUSE:Tumbleweed | All versions | 2.1.1-1.1 |
rubygem-rack-session openSUSE:Tumbleweed | All versions | 2.1.1-1.3 |
How do I fix CVE-2025-46336?
Upgrade rack-session to 2.1.1 or later.
Is CVE-2025-46336 being exploited?
There is no known exploitation of CVE-2025-46336 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2025-46336, GHSA-9j94-67jr-4cqj, UBUNTU-CVE-2025-46336, openSUSE-SU-2025:15623-1, openSUSE-SU-2026:10359-1.