CVE-2025-46336Rack session gets restored after deletion
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.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.04 | ruby-rack | Under investigation | UBUNTU-CVE-2025-46336 | |
| Ubuntu 24.04 | ruby-rack | Under investigation | UBUNTU-CVE-2025-46336 | |
| Ubuntu 22.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46336 | |
| Ubuntu 20.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46336 | |
| Ubuntu 18.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46336 | |
| Ubuntu 16.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46336 | |
| Ubuntu 14.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-46336 | |
| Debian 14 | ruby-rack-session | Fixed | 2.1.1-0.1 | DEBIAN-CVE-2025-46336 |
| Debian 13 | ruby-rack-session | Fixed | 2.1.1-0.1 | DEBIAN-CVE-2025-46336 |
| Red Hat Enterprise Linux 9 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | python-clufter | Fix pending Fix deferred | ||
| RubyGems library | rack | Fixed | 2.2.14 | GHSA-vpfw-47h7-xj4g |
| RubyGems library | rack-session | Fixed | 2.1.1 | GHSA-9j94-67jr-4cqj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rack-session: affected: >= 2.0.0, < 2.1.1
References
- https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g
- https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.