{"answers":{"affected":"2 open source packages ship an affected version, including rack-session.","exploited":"There is no known exploitation of CVE-2025-46336 in the wild and no public exploit code.","fix":"Upgrade rack-session to 2.1.1 or later.","what":"CVE-2025-46336 is a medium-severity vulnerability in rack-session, published on 8 May 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46336 and fix it if it is affected.\n\nWhat it is: CVE-2025-46336 is a medium-severity vulnerability in rack-session, published on 8 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-46336 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rack-session (RubyGems): affected from 2.0.0; fixed in 2.1.1\n- rack-session (RubyGems): affected from 2.0.0; fixed in 2.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-46336/ (Markdown: https://insights.sbomify.com/CVE-2025-46336/index.md)","id":"CVE-2025-46336","markdown":"https://insights.sbomify.com/CVE-2025-46336/index.md","name":"CVE-2025-46336","record":{"aliases":["DEBIAN-CVE-2025-46336","GHSA-9j94-67jr-4cqj","UBUNTU-CVE-2025-46336","openSUSE-SU-2025:15623-1","openSUSE-SU-2026:10359-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby session library","requires_auth":"low_privilege","summary":"Attackers can retain illicit access after user logout via a race condition in Rack session pool, requiring a long-running request and stolen cookie.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"},{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"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.","ecosystems":["RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Rack session gets restored after deletion","id":"CVE-2025-46336","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":4,"n_references":3,"next":{"headline":"SQL injection in ADOdb PostgreSQL driver pg_insert_id() method","id":"CVE-2025-46337"},"packages":[{"ecosystem":"RubyGems","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"rack-session","purl":null,"source":"GHSA-9j94-67jr-4cqj"},{"ecosystem":"RubyGems","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"rack-session","purl":"pkg:gem/rack-session","source":"GHSA-9j94-67jr-4cqj"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.1.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rack-session","purl":"pkg:rpm/opensuse/rubygem-rack-session\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15623-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.1.1-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rack-session","purl":"pkg:rpm/opensuse/rubygem-rack-session\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10359-1"}],"prev":{"headline":"Mobile Security Framework (MobSF) Allows Stored Cross Site Scripting (XSS) via malicious SVG Icon Upload","id":"CVE-2025-46335"},"products":["rack-session"],"published":"2025-05-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-08","vendors":["rack"]},"summary":"Attackers can retain illicit access after user logout via a race condition in Rack session pool, requiring a long-running request and stolen cookie.","url":"https://insights.sbomify.com/CVE-2025-46336/"}