CVEfocus › CVE database › CVE-2026-39324

CVE-2026-39324Rack::Session::Cookie secrets: decrypt failure fallback enables secretless session…

CVSS 9.3 CriticalEPSS 0.3% (higher than 17% of CVEs)Published 2026-04-07Updated 2026-04-08Assigner: GitHub_M

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.

CWE-287CWE-345CWE-502CWE-565

What to do

Fixed builds are available from Debian, RubyGems, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ruby-rackNot affected
vulnerable_code_not_present
Ubuntu 26.04ruby-rack-sessionFixed2.1.1-0.1ubuntu0.26.04.1UBUNTU-CVE-2026-39324
Ubuntu 25.10ruby-rackNot affected
vulnerable_code_not_present
Ubuntu 25.10ruby-rack-sessionFixed2.1.1-0.1ubuntu0.1UBUNTU-CVE-2026-39324
Ubuntu 24.04ruby-rackNot affected
vulnerable_code_not_present
Debian 14ruby-rack-sessionFixed2.1.1-0.2DEBIAN-CVE-2026-39324
Debian 13ruby-rack-sessionFixed2.1.1-0.1+deb13u1DEBIAN-CVE-2026-39324
RubyGems libraryrack-sessionFixed2.1.2GHSA-33qg-7wpp-89cq

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.