cve.bz

CVE-2025-46336 rack rack-session: Race Condition

4.2 mediumEPSS 0.4%Fix available

Medium (4.2) in rack rack-session. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in rack-session 2.1.1.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
CWE-613 Insufficient Session Expiration deprecated by MITRE see CWE-1463, CWE-1464
OWASP Top 10
A06:2025 Insecure Design, A07:2025 Authentication Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-46336 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-46336?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-46336?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-46336 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rack-session>= 2.0.0, < 2.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9j94-67jr-4cqjRubyGemsrack-session>=2.0.0 <2.1.12.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14ruby-rack-session2.1.1-0.1DEBIAN-CVE-2025-46336
Ubuntu22.04:LTS, 24.04:LTS, 25.04 and 4 moreruby-rackno fix listedUBUNTU-CVE-2025-46336
openSUSETumbleweedrubygem-rack-session2.1.1-1.1openSUSE-SU-2025:15623-1
openSUSETumbleweedrubygem-rack-session2.1.1-1.3openSUSE-SU-2026:10359-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel8Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Fix deferred
Red Hat Enterprise Linux 7pcsFix deferred
Red Hat Enterprise Linux 8pcsFix deferred
Red Hat Enterprise Linux 9pcsFix deferred
Red Hat Satellite 6rubygem-rackFix deferred
Red Hat Satellite 6satellite-capsule:el8/rubygem-rackFix deferred
Red Hat Satellite 6satellite:el8/rubygem-rackFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-46336.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON