Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-32441

CVE-2025-32441: Rack Race Condition Vulnerability

CVE-2025-32441 is a race condition vulnerability in Rack Session Pool middleware that allows attackers to restore deleted sessions and bypass logout attempts. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-32441 Overview

CVE-2025-32441 is a race condition vulnerability affecting Rack, a modular Ruby web server interface. When using the Rack::Session::Pool middleware, simultaneous rack requests can restore a deleted rack session, allowing an unauthenticated user to occupy that session. This vulnerability enables attackers who have acquired a session cookie to retain illicit access even after a legitimate user has attempted to logout.

Critical Impact

Attackers can exploit this race condition to maintain unauthorized session access after user logout, potentially leading to account takeover and unauthorized access to sensitive data.

Affected Products

  • Rack versions prior to 2.2.14
  • Ruby web applications using Rack::Session::Pool middleware

Discovery Timeline

  • 2025-05-07 - CVE-2025-32441 published to NVD
  • 2025-06-17 - Last updated in NVD database

Technical Details for CVE-2025-32441

Vulnerability Analysis

This vulnerability stems from the inherent race condition in how Rack session middleware processes concurrent requests. The session middleware prepares the session at the beginning of a request and saves it back to the store with possible changes applied by the host rack application. This design makes the session subject to race conditions when handling concurrent rack requests.

The attack scenario requires an attacker to first acquire a valid session cookie. Once obtained, the attacker can trigger a long-running request within that same session adjacent to the user logging out. Due to the race condition, the session may be restored, allowing the attacker to retain access even after the legitimate user has logged out.

Root Cause

The root cause is a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-362) in the Rack::Session::Pool middleware. When a session is deleted during logout, concurrent requests that began before the deletion can write the session data back to the pool, effectively restoring the deleted session. The vulnerable code in lib/rack/session/abstract/id.rb does not verify that the session still exists before writing session data back to the store.

Attack Vector

The attack is network-based and requires the following conditions:

  1. The attacker must acquire a valid session cookie (through session theft, XSS, or other means)
  2. The attacker initiates a long-running request using the stolen session
  3. The legitimate user logs out, which deletes the session
  4. The attacker's long-running request completes and writes session data back to the pool
  5. The session is effectively restored, granting the attacker continued access
ruby
 
      def write_session(req, session_id, new_session, options)
        with_lock(req) do
+          return false unless get_session_with_fallback(session_id)
          @pool.store session_id.private_id, new_session
          session_id
        end

Source: GitHub Rack Commit Update

The patch adds a verification check (get_session_with_fallback) to ensure the session still exists before writing data back to the pool, preventing restored sessions from being written after deletion.

Detection Methods for CVE-2025-32441

Indicators of Compromise

  • Unusual session activity patterns where sessions appear to remain active after logout events
  • Multiple concurrent requests using the same session ID with significantly different request durations
  • Session IDs being used after explicit session destruction events in application logs

Detection Strategies

  • Monitor for concurrent requests from the same session ID where one request has abnormally long execution time
  • Implement logging for session lifecycle events (creation, destruction, modification) and correlate with authentication events
  • Audit application logs for session reuse after logout operations

Monitoring Recommendations

  • Enable detailed session logging in your Rack application to track session state changes
  • Configure application monitoring to alert on session anomalies such as sessions being written after destruction
  • Review server access logs for patterns indicating long-running requests coinciding with logout events

How to Mitigate CVE-2025-32441

Immediate Actions Required

  • Upgrade Rack to version 2.2.14 or later immediately
  • Review application logs for any signs of session persistence after logout events
  • Consider implementing additional session validation at the application level as defense-in-depth

Patch Information

Rack version 2.2.14 contains the official patch for this vulnerability. The fix adds a verification check in the write_session method to ensure the session still exists before writing data back to the session pool. Organizations should update their Rack gem dependency immediately.

For detailed patch information, refer to the GitHub Security Advisory GHSA-vpfw-47h7-xj4g and the patch commit.

Workarounds

  • Implement atomic session invalidation by using a logged_out flag instead of deleting sessions, and check this flag on every request to prevent reuse
  • Create a custom session store that tracks session invalidation timestamps and refuses to accept session data if the session was invalidated after the request began
  • Consider switching to a different session store implementation that is not affected by this specific race condition
bash
# Update Rack gem to patched version
bundle update rack

# Verify the installed version
bundle show rack
# Expected output: rack-2.2.14 or higher

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechRack

  • SeverityMEDIUM

  • CVSS Score4.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-362
  • Technical References
  • GitHub Rack Code Snippet
  • Vendor Resources
  • GitHub Rack Commit Update

  • GitHub Security Advisory GHSA-vpfw-47h7-xj4g
  • Related CVEs
  • CVE-2026-39324: Rack::Session Auth Bypass Vulnerability

  • CVE-2026-34835: Rack Auth Bypass Vulnerability

  • CVE-2026-34827: Rack Multipart Parser DoS Vulnerability

  • CVE-2026-32762: Rack Header Parsing Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English