Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955664 (CVE-2025-32441) - <dev-ruby/rack-2.2.14: Restoration of deleted sessions
Summary: <dev-ruby/rack-2.2.14: Restoration of deleted sessions
Status: CONFIRMED
Alias: CVE-2025-32441
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://github.com/rack/rack/security...
Whiteboard: C4 [stable]
Keywords:
Depends on: 955665
Blocks:
  Show dependency tree
 
Reported: 2025-05-09 07:54 UTC by Hans de Graaff
Modified: 2025-06-10 06:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2025-05-09 07:54:39 UTC
Summary

When using the Rack::Session::Pool middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session.
Details

Rack session middleware prepares the session at the beginning of request, then saves is back to the store with possible changes applied by host rack application. This way the session becomes to be a subject of race conditions in general sense over concurrent rack requests.
Impact

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.