Skip to content

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

CriticalCVSS 9.3 EPSS 0.27% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

5 packages: 5 fixed.

PackageAffectedFixed inStatus
debian/ruby-rack-session(Debian 13) < 2.1.1-0.1+deb13u1; = 2.1.1-0.1 2.1.1-0.1+deb13u1 Fixed
debian/ruby-rack-session(Debian 14) < 2.1.1-0.2; = 2.1.1-0.1 2.1.1-0.2 Fixed
rack-session = >= 2.0.0, < 2.1.2; >= 2.0.0, < 2.1.2 2.1.2 Fixed
rubygems rack-session(RubyGems) = 2.0.0; = 2.1.0; = 2.1.1; >= 2.0.0, < 2.1.2 2.1.2 Fixed
ubuntu/ruby-rack-session(Ubuntu 26.04) < 2.1.1-0.1ubuntu0.26.04.1 2.1.1-0.1ubuntu0.26.04.1 Fixed

Affected products

ProductAffected versionsFixed in
rubygems rack-session(RubyGems) >= 2.0.0, < 2.1.2 2.1.2
rubygems rack-session(RubyGems) = 2.0.0 No fix listed
rubygems rack-session(RubyGems) = 2.1.0 No fix listed
rubygems rack-session(RubyGems) = 2.1.1 No fix listed
rack-session = >= 2.0.0, < 2.1.2 No fix listed
debian/ruby-rack-session(Debian:13) < 2.1.1-0.1+deb13u1 2.1.1-0.1+deb13u1
debian/ruby-rack-session(Debian:13) = 2.1.1-0.1 No fix listed
debian/ruby-rack-session(Debian:14) < 2.1.1-0.2 2.1.1-0.2
debian/ruby-rack-session(Debian:14) = 2.1.1-0.1 No fix listed
ubuntu/ruby-rack-session(Ubuntu:26.04) < 2.1.1-0.1ubuntu0.26.04.1 2.1.1-0.1ubuntu0.26.04.1
rack-session >= 2.0.0, < 2.1.2 2.1.2

References