CVEfocus › CVE database › CVE-2025-32441

CVE-2025-32441Rack session gets restored after deletion

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

Rack is a modular Ruby web server interface. Prior to version 2.2.14, when using the `Rack::Session::Pool` middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session. Rack session middleware prepares the session at the beginning of request, then saves is back to the store with possible changes applied by host rack application. This way the session becomes to be a subject of race conditions in general sense over concurrent rack requests. 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. Version 2.2.14 contains a patch for the issue. Some other mitigations are available. Either ensure the application invalidates sessions atomically by marking them as logged out e.g., using a `logged_out` flag, instead of deleting them, and check this flag on every request to prevent reuse; or implement a custom session store that tracks session invalidation timestamps and refuses to accept session data if the session was invalidated after the request began.

CWE-362CWE-367CWE-613

What to do

Fixed builds are available from Debian, RubyGems, Ubuntu: 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

7Fixed
12Fix pending

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 26.04ruby-rackFixed3.1.16-0.1UBUNTU-CVE-2025-32441
Ubuntu 25.10ruby-rackFixed3.1.16-0.1UBUNTU-CVE-2025-32441
Ubuntu 24.04ruby-rackFixed2.2.7-1ubuntu0.3UBUNTU-CVE-2025-32441
Ubuntu 22.04ruby-rackFix pending2.1.4-5ubuntu1.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-32441
Ubuntu 20.04ruby-rackFix pending2.0.7-2ubuntu0.1+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-32441
Ubuntu 18.04ruby-rackFix pending1.6.4-4ubuntu0.2+esm8 (Ubuntu Pro)UBUNTU-CVE-2025-32441
Ubuntu 16.04ruby-rackFix pending1.6.4-3ubuntu0.2+esm8 (Ubuntu Pro)UBUNTU-CVE-2025-32441
Ubuntu 14.04ruby-rackFix pending1.5.2-3+deb8u3ubuntu1~esm10 (Ubuntu Pro)UBUNTU-CVE-2025-32441
Debian 14ruby-rackFixed3.0.8-2DEBIAN-CVE-2025-32441
Debian 13ruby-rackFixed3.0.8-2DEBIAN-CVE-2025-32441
Debian 12ruby-rackFixed2.2.20-0+deb12u1DEBIAN-CVE-2025-32441
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

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.