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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-08 · Modified: 2025-05-08
- Aliases: UBUNTU-CVE-2025-46336, DEBIAN-CVE-2025-46336, CGA-fjm7-pxw5-m7rh, CGA-v29j-p87g-5c6g, openSUSE-SU-2025:15623-1, openSUSE-SU-2026:10359-1, CGA-2536-9vr7-qjv2, CGA-39hw-2f7f-qxwq, CGA-3m39-qh4m-mmmg, CGA-54pr-6mfj-x3r4, CGA-58q6-8mmp-mgxr, CGA-5frv-m966-6p63, CGA-5mwr-h866-m5hp, CGA-5qrx-vqqf-crf9, CGA-5wcp-6628-r24q, CGA-5wp2-8m2v-v4gw, CGA-6659-8hh4-9xjg, CGA-7598-c7rj-4vjh, CGA-f2rw-9gq4-5vf9, CGA-f353-6hjx-qx8x, CGA-f6r4-45j3-2qhc, CGA-fgcv-w6rv-33q7, CGA-fv6x-r67x-c92c, CGA-g3h7-25x5-qhf6, CGA-gv96-mvr8-qrr8, CGA-h59m-xxf8-22g8, CGA-hhm9-5p5p-33rf, CGA-jhgw-m3vx-5frh, CGA-jjrg-r3p5-hmf6, CGA-jpcw-xv58-x8gp, CGA-jq2x-rf4c-wgrg, CGA-jqmq-f93v-p7gm, CGA-p548-hxfx-pxgf, CGA-p5w6-fjrx-24gq, GHSA-9j94-67jr-4cqj, CGA-q44m-h3jw-h8r4, CGA-q5mv-r897-56x9, CGA-q9v9-qf5p-wjmr, CGA-qr3v-5qcf-4jgf, CGA-r4rf-xrpm-h58f, CGA-rw8m-qhr7-rx4m, CGA-vc2r-vcg2-8fhp, CGA-xx3g-xf2v-3hmr
- Record: https://cvemate.com/vulnerability/CVE-2025-46336 · JSON: https://cvemate.com/vulnerability/CVE-2025-46336/json

## Description

```text
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.
```

## Signals

- CVSS: 4.2 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.402%, percentile 36.559%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 25)

- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.18.1-r1
- chainguard ruby3.2-rails-7.1 (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.2-rails-7.1-compat (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.2-rails-7.2 (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.2-rails-7.2-compat (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.2-rails-8.0 (Chainguard): \< 8.0.2-r4
- chainguard ruby3.2-rails-8.0-compat (Chainguard): \< 8.0.2-r4
- chainguard ruby3.3-rails-7.1 (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.3-rails-7.1-compat (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.3-rails-7.2 (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.3-rails-7.2-compat (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.3-rails-8.0 (Chainguard): \< 8.0.2-r4
- chainguard ruby3.3-rails-8.0-compat (Chainguard): \< 8.0.2-r4
- chainguard ruby3.4-rails-7.1 (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.4-rails-7.1-compat (Chainguard): \< 7.1.5.1-r7
- chainguard ruby3.4-rails-7.2 (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.4-rails-7.2-compat (Chainguard): \< 7.2.2.1-r7
- chainguard ruby3.4-rails-8.0 (Chainguard): \< 8.0.2-r4
- chainguard ruby3.4-rails-8.0-compat (Chainguard): \< 8.0.2-r4
- wolfi logstash-8-with-output-opensearch (Wolfi): \< 8.18.1-r1

## References

- <https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj>
- <https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g>
- <https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b>
- <https://ubuntu.com/security/CVE-2025-46336>
- <https://www.cve.org/CVERecord?id=CVE-2025-46336>
- <https://security-tracker.debian.org/tracker/CVE-2025-46336>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46336.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46336>
- <https://www.suse.com/security/cve/CVE-2025-46336>
- <https://github.com/rack/rack-session>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-session/CVE-2025-46336.yml>

---

Data as of 2026-12-05T07:37:33.575Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
