CVE-2025-46336 Rack session gets restored after deletion
MediumCVSS 4.2
EPSS 0.39%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-rack-session(Debian 13) | < 2.1.1-0.1 | 2.1.1-0.1 | Fixed |
| debian/ruby-rack-session(Debian 14) | < 2.1.1-0.1 | 2.1.1-0.1 | Fixed |
| rubygems rack-session(RubyGems) | = 2.0.0; = 2.1.0; >= 2.0.0, < 2.1.1 | 2.1.1 | Fixed |
| rack-session | = >= 2.0.0, < 2.1.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems rack-session(RubyGems) | >= 2.0.0, < 2.1.1 | 2.1.1 |
| rubygems rack-session(RubyGems) | = 2.0.0 | No fix listed |
| rubygems rack-session(RubyGems) | = 2.1.0 | No fix listed |
| debian/ruby-rack-session(Debian:13) | < 2.1.1-0.1 | 2.1.1-0.1 |
| debian/ruby-rack-session(Debian:14) | < 2.1.1-0.1 | 2.1.1-0.1 |
| rack-session | = >= 2.0.0, < 2.1.1 | No fix listed |
References
- https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj vendor-advisory
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b patch
- github.com product
- github.com exploit
- Debian Security Tracker CVE-2025-46336 vendor-advisory
- github.com
- bugs.debian.org issue-tracking