Vulnerability · Published May 8, 2025 · Assigned by GitHub_M
CVE-2025-46336Rack session gets restored after deletion
Medium 4.2
In plain English
A medium-severity race condition in rack-session from rack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | ruby-rack-session | 2.1.1-0.1 | DEBIAN-CVE-2025-46336 |
| Debian:14 | ruby-rack-session | 2.1.1-0.1 | DEBIAN-CVE-2025-46336 |
| RubyGems | rack-session | 2.1.1 | GHSA-9j94-67jr-4cqj |
| Ubuntu:22.04:LTS | ruby-rack | no fix listed | UBUNTU-CVE-2025-46336 |
| Ubuntu:24.04:LTS | ruby-rack | no fix listed | UBUNTU-CVE-2025-46336 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| rack | rack-session | >= 2.0.0, < 2.1.1 |
Weakness: CWE-362, CWE-367, CWE-613 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N