Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack-session
  4. ›
  5. CVE-2025-46336

CVE-2025-46336: Rack session gets restored after deletion

May 8, 2025 (updated May 9, 2025)

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.

References

  • github.com/advisories/GHSA-9j94-67jr-4cqj
  • github.com/rack/rack-session
  • github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b
  • github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj
  • github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-session/CVE-2025-46336.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-46336

Code Behaviors & Features

Detect and mitigate CVE-2025-46336 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.1.1

Fixed versions

  • 2.1.1

Solution

Upgrade to version 2.1.1 or above.

Impact 4.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-613: Insufficient Session Expiration

Source file

gem/rack-session/CVE-2025-46336.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 12:16:09 +0000.