CVE-2025-46336
Rack session gets restored after deletion
Reported by github_m · Published May 8, 2025
rack-session is fixed in 2.1.1 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack-session | RubyGems | 2.1.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack-session | >= 2.0.0, < 2.1.1 |
| RubyGems | rack-session | 2.0.0 |
| chainguard | ruby3.3-rails-8.0 | 0 |
| chainguard | ruby3.2-rails-8.0 | 0 |
| chainguard | ruby3.4-rails-7.2 | 0 |
| chainguard | ruby3.4-rails-8.0 | 0 |
| chainguard | ruby3.2-rails-7.2 | 0 |
| chainguard | ruby3.3-rails-7.1 | 0 |
| wolfi | ruby3.4-rails-8.0 | 0 |
| chainguard | ruby3.4-rails-7.1 | 0 |
| chainguard | ruby3.2-rails-7.1 | 0 |
| wolfi | logstash-8 | 0 |
| chainguard | ruby3.3-rails-7.2 | 0 |
| wolfi | ruby3.2-rails-8.0 | 0 |
| chainguard | logstash-8 | 0 |
| wolfi | ruby3.3-rails-8.0 | 0 |
| rack | rack-session | 2.0.0 |
Timeline
- May 8, 2025 CVE Published
- May 8, 2025 PoC Published (13 in total, the first dated here)
- May 9, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Apr 15, 2026 CVE Updated
- Jun 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-46336
vulnetix vdb fixes CVE-2025-46336
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-46336/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj x_refsource_CONFIRM
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g x_refsource_MISC
- https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-46336 advisory
- https://github.com/advisories/GHSA-9j94-67jr-4cqj advisory
- https://github.com/rack/rack-session url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-session/CVE-2025-46336.yml advisory