p PatchFirst

CVE-2025-46336

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

CVSS 4.2 · Medium · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-rack-session"'
gem list --exact rack-session

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · ruby

Affected products and versions

  • rack-session

    Versions
    • >= 2.0.0, < 2.1.1: Affected

    No fix published

  • ruby-rack-session Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.1

    Update to 2.1.1-0.1

  • ruby-rack-session Debian 14

    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.1

    Update to 2.1.1-0.1

  • rack-session RubyGems

    Versions
    • 2.0.0
    • 2.1.0
    Affected ranges
    • ECOSYSTEM: ≥ 2.0.0, < 2.1.1

    Update to 2.1.1

  • ruby-rack Ubuntu Pro 14.04 LTS

    Versions
    • 1.5.2-1
    • 1.5.2-1ubuntu0.1~esm1
    • 1.5.2-3+deb8u3ubuntu1~esm2
    • 1.5.2-3+deb8u3ubuntu1~esm3
    • 1.5.2-3+deb8u3ubuntu1~esm4
    • 1.5.2-3+deb8u3ubuntu1~esm6
    All versions (10)
    • 1.5.2-3+deb8u3ubuntu1~esm7
    • 1.5.2-3+deb8u3ubuntu1~esm8
    • 1.5.2-3+deb8u3ubuntu1~esm9
    • 1.5.2-3+deb8u3ubuntu1~esm10
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu Pro 16.04 LTS

    Versions
    • 1.5.2-4
    • 1.6.4-2
    • 1.6.4-3
    • 1.6.4-3ubuntu0.1
    • 1.6.4-3ubuntu0.2
    • 1.6.4-3ubuntu0.2+esm1
    All versions (12)
    • 1.6.4-3ubuntu0.2+esm2
    • 1.6.4-3ubuntu0.2+esm4
    • 1.6.4-3ubuntu0.2+esm5
    • 1.6.4-3ubuntu0.2+esm6
    • 1.6.4-3ubuntu0.2+esm7
    • 1.6.4-3ubuntu0.2+esm8
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu Pro 18.04 LTS

    Versions
    • 1.6.4-4
    • 1.6.4-4ubuntu0.1
    • 1.6.4-4ubuntu0.2
    • 1.6.4-4ubuntu0.2+esm1
    • 1.6.4-4ubuntu0.2+esm2
    • 1.6.4-4ubuntu0.2+esm4
    All versions (10)
    • 1.6.4-4ubuntu0.2+esm5
    • 1.6.4-4ubuntu0.2+esm6
    • 1.6.4-4ubuntu0.2+esm7
    • 1.6.4-4ubuntu0.2+esm8
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu Pro 20.04 LTS

    Versions
    • 2.0.6-3
    • 2.0.7-2
    • 2.0.7-2ubuntu0.1
    • 2.0.7-2ubuntu0.1+esm1
    • 2.0.7-2ubuntu0.1+esm2
    • 2.0.7-2ubuntu0.1+esm3
    All versions (10)
    • 2.0.7-2ubuntu0.1+esm4
    • 2.0.7-2ubuntu0.1+esm5
    • 2.0.7-2ubuntu0.1+esm6
    • 2.0.7-2ubuntu0.1+esm7
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu 22.04 LTS

    Versions
    • 2.1.4-3
    • 2.1.4-4
    • 2.1.4-5
    • 2.1.4-5ubuntu1
    • 2.1.4-5ubuntu1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu 24.04 LTS

    Versions
    • 2.2.4-3
    • 2.2.7-1
    • 2.2.7-1ubuntu0.1
    • 2.2.7-1ubuntu0.2
    • 2.2.7-1ubuntu0.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu 25.04

    Versions
    • 2.2.7-1.1
    • 2.2.7-1.1ubuntu0.25.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →