CVE-2026-39324 Rack::Session::Cookie secrets: decrypt failure fallback enables secretless session forgery and Marshal deserialization
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/rack/rack-session/security/advisories/GHSA-33qg-7wpp-89cq mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com exploit
- github.com
- Debian Security Tracker CVE-2026-39324 vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2456143 issue-tracking
- www.cve.org
- Ubuntu CVE tracker vendor-advisory
- USN-8190-1 vendor-advisory
- USN-8190-2 vendor-advisory
- bugs.debian.org issue-tracking