PT-2025-20398 · Unknown+1 · Rack::Session+1

Stengineering0

·

Published

2025-05-08

·

Updated

2026-03-13

·

CVE-2025-46336

CVSS v3.1

4.2

Medium

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Rack::Session versions 2.0.0 through 2.1.0
Description The issue concerns the Rack::Session::Pool middleware, where simultaneous requests can restore a deleted session, allowing an unauthenticated user to occupy that session. If an attacker can acquire a session cookie and trigger a long-running request adjacent to the user logging out, they may retain illicit access even after the user has attempted to log out.
Recommendations
  • Update to version 2.1.1 or later.
  • Ensure your application invalidates sessions atomically by marking them as logged out, for example, using a logged out flag, instead of deleting them, and check this flag on every request to prevent reuse.
  • 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.

Exploit

Fix

DoS

Insufficient Session Expiration

Time Of Check To Time Of Use

Race Condition

Weakness Enumeration

Related Identifiers

BDU:2025-07427
CVE-2025-46336
GHSA-9J94-67JR-4CQJ
GHSA-VPFW-47H7-XJ4G
OPENSUSE-SU-2025:15623-1
OPENSUSE-SU-2026:10359-1

Affected Products

Rack::Session
Red Os