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

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-04-07T18:13:28.639Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-33qg-7wpp-89cq
- Weaknesses: CWE-287, CWE-345, CWE-502, CWE-565
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rack rack-session: >= 2.0.0, < 2.1.2; from 2.0.0 before 2.1.2
- rack-session (RubyGems): from 2.0.0 before 2.1.2

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/rack/rack-session/security/advisories/GHSA-33qg-7wpp-89cq> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39324> (advisory)
- <https://github.com/rack/rack-session> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-session/CVE-2026-39324.yml> (web)

## Sources

- CVE List: [CVE-2026-39324](https://www.cve.org/CVERecord?id=CVE-2026-39324), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-33qg-7wpp-89cq](https://github.com/advisories/GHSA-33qg-7wpp-89cq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39324](https://nvd.nist.gov/vuln/detail/CVE-2026-39324), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39324 · Whole record: https://cve.day/CVE-2026-39324.json · Rebuilt by cve.day 2026-11-25T22:59:18.147Z
