CVEfocus › CVE database › CVE-2025-46336

CVE-2025-46336Rack session gets restored after deletion

CVSS 4.2 MediumEPSS 0.4% (higher than 25% of CVEs)Published 2025-05-08Updated 2025-05-08Assigner: GitHub_M

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.

CWE-362CWE-367CWE-613

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

4Fixed
12Fix pending
2Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.04ruby-rackUnder investigationUBUNTU-CVE-2025-46336
Ubuntu 24.04ruby-rackUnder investigationUBUNTU-CVE-2025-46336
Ubuntu 22.04ruby-rackFix pendingUBUNTU-CVE-2025-46336
Ubuntu 20.04ruby-rackFix pendingUBUNTU-CVE-2025-46336
Ubuntu 18.04ruby-rackFix pendingUBUNTU-CVE-2025-46336
Ubuntu 16.04ruby-rackFix pendingUBUNTU-CVE-2025-46336
Ubuntu 14.04ruby-rackFix pendingUBUNTU-CVE-2025-46336
Debian 14ruby-rack-sessionFixed2.1.1-0.1DEBIAN-CVE-2025-46336
Debian 13ruby-rack-sessionFixed2.1.1-0.1DEBIAN-CVE-2025-46336
Red Hat Enterprise Linux 9pcsFix pending
Fix deferred
Red Hat Enterprise Linux 9pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 8pcsFix pending
Fix deferred
Red Hat Enterprise Linux 8pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 7pcsFix pending
Fix deferred
Red Hat Enterprise Linux 7pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 7python-clufterFix pending
Fix deferred
RubyGems libraryrackFixed2.2.14GHSA-vpfw-47h7-xj4g
RubyGems libraryrack-sessionFixed2.1.1GHSA-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.

References

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.