CVE-2025-32441Rack session gets restored after deletion
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.
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
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 26.04 | ruby-rack | Fixed | 3.1.16-0.1 | UBUNTU-CVE-2025-32441 |
| Ubuntu 25.10 | ruby-rack | Fixed | 3.1.16-0.1 | UBUNTU-CVE-2025-32441 |
| Ubuntu 24.04 | ruby-rack | Fixed | 2.2.7-1ubuntu0.3 | UBUNTU-CVE-2025-32441 |
| Ubuntu 22.04 | ruby-rack | Fix pending | 2.1.4-5ubuntu1.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-32441 |
| Ubuntu 20.04 | ruby-rack | Fix pending | 2.0.7-2ubuntu0.1+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-32441 |
| Ubuntu 18.04 | ruby-rack | Fix pending | 1.6.4-4ubuntu0.2+esm8 (Ubuntu Pro) | UBUNTU-CVE-2025-32441 |
| Ubuntu 16.04 | ruby-rack | Fix pending | 1.6.4-3ubuntu0.2+esm8 (Ubuntu Pro) | UBUNTU-CVE-2025-32441 |
| Ubuntu 14.04 | ruby-rack | Fix pending | 1.5.2-3+deb8u3ubuntu1~esm10 (Ubuntu Pro) | UBUNTU-CVE-2025-32441 |
| Debian 14 | ruby-rack | Fixed | 3.0.8-2 | DEBIAN-CVE-2025-32441 |
| Debian 13 | ruby-rack | Fixed | 3.0.8-2 | DEBIAN-CVE-2025-32441 |
| Debian 12 | ruby-rack | Fixed | 2.2.20-0+deb12u1 | DEBIAN-CVE-2025-32441 |
| 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 |
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: affected: < 2.2.14
References
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g
- https://github.com/rack/rack/commit/c48e52f7c57e99e1e1bf54c8760d4f082cd1c89d
- https://github.com/rack/rack/blob/v2.2.13/lib/rack/session/abstract/id.rb#L263-L270
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.