Race Condition Affecting ruby-rack-session package, versions <2.1.1-0.1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.39% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-RUBYRACKSESSION-20511620
  • published5 Oct 2026
  • disclosed8 May 2025

Introduced: 8 May 2025

CVE-2025-46336  (opens in a new tab)
CWE-362  (opens in a new tab)
CWE-367  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

Upgrade Echo:latest ruby-rack-session to version 2.1.1-0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-rack-session package and not the ruby-rack-session package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1