CVE-2026-39324 Details
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.
A vulnerability exists in Rack::Session::Cookie versions 2.0.0 prior to 2.1.2, related to how decryption failures are handled when the 'secrets' configuration is used. Instead of rejecting cookies that cannot be decrypted, the implementation falls back to a default decoder, accepting unencrypted cookies as valid session data. This flaw enables an unauthenticated attacker to craft a session cookie that is recognized as legitimate, bypassing the need for knowledge of the configured secret. As this mechanism is used to load session state, it could allow an attacker to alter session contents and potentially gain unauthorized access.
Users are advised to update to Rack::Session version 2.1.2 or later, which addresses the vulnerability by rejecting cookies when decryption fails under the 'secrets' configuration. After updating, it is recommended to rotate session secrets to invalidate existing session cookies, as attacker-supplied session data may have been accepted and re-issued prior to the fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rack/rack-session/security/advisories/GHSA-33qg-7wpp-89cq | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-287 | Improper Authentication | [email protected] |
| CWE-345 | Insufficient Verification of Data Authenticity | [email protected] |
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
| CWE-565 | Reliance on Cookies without Validation and Integrity Checking | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rack rack-session | >= 2.0.0, < 2.1.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 15, 2026 | Initial Analysis | [email protected] |
| Apr 7, 2026 | New CVE Received | [email protected] |