p PatchFirst

CVE-2026-39324

CVE-2026-39324 · Rack::Session::Cookie secrets: decrypt failure fallback enables secretless session forgery and Marshal deserialization

CVSS 9.3 · Critical · EPSS 0.3% · 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. From 2.0.0 to before 2.1.2, Rack::Session::Cookie incorrectly handles decryption failures when configured with secrets:. If cookie decryption fails, the implementation falls back to a default decoder instead of rejecting the cookie. This allows an unauthenticated attacker to supply a crafted session cookie that is accepted as valid session data without knowledge of any configured secret. Because this mechanism is used to load session state, an attacker can manipulate session contents and potentially gain unauthorized access. This vulnerability is fixed in 2.1.2.

Published
Updated

Fixes in distributions

Stack: system · ruby

Affected products and versions

  • rack-session

    Versions
    • >= 2.0.0, < 2.1.2: Affected

    No fix published

  • ruby-rack-session Debian 13

    Versions
    • 2.1.1-0.1
    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.1+deb13u1

    Update to 2.1.1-0.1+deb13u1

  • ruby-rack-session Debian 14

    Versions
    • 2.1.1-0.1
    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.2

    Update to 2.1.1-0.2

  • rack-session RubyGems

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

    Update to 2.1.2

  • ruby-rack-session Ubuntu 25.10

    Versions
    • 2.1.1-0.1
    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.1ubuntu0.1

    Update to 2.1.1-0.1ubuntu0.1

  • ruby-rack-session Ubuntu 26.04 LTS

    Versions
    • 2.1.1-0.1
    • 2.1.1-0.1build1
    Affected ranges
    • ECOSYSTEM: < 2.1.1-0.1ubuntu0.26.04.1

    Update to 2.1.1-0.1ubuntu0.26.04.1

Original sources

Check your server →