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.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.4%top 67.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:13ruby-rack-session2.1.1-0.1DEBIAN-CVE-2025-46336
Debian:14ruby-rack-session2.1.1-0.1DEBIAN-CVE-2025-46336
RubyGemsrack-session2.1.1GHSA-9j94-67jr-4cqj
Ubuntu:22.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-46336
Ubuntu:24.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-46336

Affected products (as reported)

VendorProductVersions
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

References