# CVE-2025-46336: Rack session gets restored after deletion

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A: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.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2025-05-08T14:45:33.000Z
- Modified: 2026-09-10T03:50:57.454Z
- Also known as: GHSA-9j94-67jr-4cqj
- Weaknesses: CWE-362, CWE-367, CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Rack::Session is a session management implementation for Rack. In versions starting from 2.0.0 to before 2.1.1, when using the Rack::Session::Pool middleware, and provided the attacker can acquire a session cookie (already a major issue), the session may be restored if the attacker can trigger a long running request (within that same session) adjacent to the user logging out, in order to retain illicit access even after a user has attempted to logout. This issue has been patched in version 2.1.1.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj> (web)
- <https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g> (web)
- <https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46336> (advisory)
- <https://github.com/rack/rack-session> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-session/CVE-2025-46336.yml> (web)

## Sources

- CVE List: [CVE-2025-46336](https://www.cve.org/CVERecord?id=CVE-2025-46336), CVE Terms of Use, modified 2025-05-08
- GitHub Advisory Database: [GHSA-9j94-67jr-4cqj](https://github.com/advisories/GHSA-9j94-67jr-4cqj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-46336](https://nvd.nist.gov/vuln/detail/CVE-2025-46336), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46336 · Whole record: https://cve.day/CVE-2025-46336.json · Rebuilt by cve.day 2026-11-25T22:58:57.821Z
