The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-23634

CVE-2022-23634: Puma Information Disclosure Vulnerability

CVE-2022-23634 is an information disclosure vulnerability in Puma web server that causes information leakage when combined with Rails CurrentAttributes. This article covers the technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-23634 Overview

CVE-2022-23634 is an information leakage vulnerability affecting Puma, a Ruby/Rack web server built for parallelism. Prior to version 5.6.2, Puma may not always call close on the response body. When combined with Ruby on Rails (prior to version 7.0.2.2), which depends on the response body being closed for its CurrentAttributes implementation to work correctly, this creates a condition where sensitive information can leak between requests.

Critical Impact

The combination of Puma not closing the response body and Rails' Executor implementation causes information leakage, potentially exposing sensitive data from one user's request to another user.

Affected Products

  • Puma versions prior to 5.6.2 and 4.3.11
  • Ruby on Rails versions prior to 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2
  • Debian Linux 9.0, 10.0, and 11.0
  • Fedora 35, 36, and 37

Discovery Timeline

  • 2022-02-11 - CVE-2022-23634 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23634

Vulnerability Analysis

This vulnerability stems from an improper resource shutdown in Puma's request handling mechanism. The web server fails to reliably call close on the response body under certain conditions, which breaks the expected Rack protocol behavior. Rails' CurrentAttributes feature relies on Rack::BodyProxy callbacks being triggered when the response body is closed to properly reset thread-local state between requests.

When Puma skips the close call, Rails' Executor implementation cannot properly clean up CurrentAttributes data. This results in attributes set during one request persisting into subsequent requests that may be handled by the same thread, potentially exposing one user's data to another user.

The vulnerability requires a network-based attack vector with high attack complexity, as the attacker must be able to influence request timing and thread allocation to successfully exploit the information leakage condition.

Root Cause

The root cause is found in Puma's lib/puma/request.rb file, where the response body closure logic was not wrapped in a proper ensure block. If an exception occurred during socket uncorking or temporary file cleanup, the res_body.close call could be skipped entirely. This violates the Rack specification which mandates that the response body must always be closed after a request completes.

Attack Vector

An attacker exploiting this vulnerability would need to:

  1. Target a Rails application running on a vulnerable Puma version
  2. Make requests that cause Rails CurrentAttributes to be populated with sensitive data
  3. Time subsequent requests to hit the same worker thread before the state is properly cleared
  4. Access leaked CurrentAttributes data that should have been isolated to a different user's session

The network-based attack vector requires no authentication, though successful exploitation depends on application-specific conditions and thread scheduling.

ruby
# Security patch in lib/puma/request.rb
# Ensures `close` is called on the response body no matter what
         end
 
       ensure
-        uncork_socket io
-
-        body.close
-        client.tempfile.unlink if client.tempfile
-        res_body.close if res_body.respond_to? :close
+        begin
+          uncork_socket io
+
+          body.close
+          client.tempfile.unlink if client.tempfile
+        ensure
+          # Whatever happens, we MUST call `close` on the response body.
+          # Otherwise Rack::BodyProxy callbacks may not fire and lead to various state leaks
+          res_body.close if res_body.respond_to? :close
+        end
 
         after_reply.each { |o| o.call }
       end

Source: Puma Commit Details

Detection Methods for CVE-2022-23634

Indicators of Compromise

  • Unexpected data appearing in Rails CurrentAttributes that belongs to other users or sessions
  • Application logs showing inconsistent user context data across requests
  • User reports of seeing other users' information in their session
  • Anomalous thread behavior where state persists unexpectedly between requests

Detection Strategies

  • Monitor application logs for CurrentAttributes values that do not match the expected user context
  • Implement request correlation tracking to detect when thread-local state leaks between unrelated requests
  • Deploy application-level instrumentation to verify Rack::BodyProxy callbacks are being triggered properly
  • Use SentinelOne's runtime application monitoring to detect anomalous information flow patterns

Monitoring Recommendations

  • Enable verbose logging for Puma worker threads to track request handling and body closure events
  • Implement custom Rails instrumentation to alert when CurrentAttributes contains unexpected values
  • Monitor for patterns where multiple users' data appears in the same response or session context
  • Configure alerts for exceptions occurring during Puma's request cleanup phase

How to Mitigate CVE-2022-23634

Immediate Actions Required

  • Upgrade Puma to version 5.6.2 or 4.3.11 or later immediately
  • Alternatively, upgrade Rails to version 7.0.2.2, 6.1.4.6, 6.0.4.6, or 5.2.6.2
  • Review application code that uses CurrentAttributes to assess potential exposure
  • Audit logs for any evidence of information leakage that may have already occurred

Patch Information

The fix is available in Puma versions 5.6.2 and 4.3.11. The patch wraps the response body closure in a nested ensure block, guaranteeing that res_body.close is called regardless of any exceptions that occur during socket uncorking or temporary file cleanup. For detailed patch information, see the Puma Commit Details.

Additional security advisories are available from:

  • GitHub Security Advisory for Puma
  • Ruby Security Announcement

Workarounds

  • If immediate patching is not possible, upgrade either Puma or Rails to a patched version, as fixing one component resolves the vulnerability
  • Avoid storing highly sensitive data in Rails CurrentAttributes until patches are applied
  • Consider implementing custom middleware to explicitly close response bodies as a temporary measure
  • Reduce worker thread reuse by configuring Puma with shorter worker timeouts to limit the window for state leakage
bash
# Update Gemfile and apply security patches
# Add version constraints to Gemfile
gem 'puma', '>= 5.6.2'  # For Puma 5.x series
# OR
gem 'puma', '>= 4.3.11' # For Puma 4.x series

# Then run bundle update
bundle update puma

# Verify installed version
bundle exec puma --version

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPuma

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.44%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • CWE-404
  • Technical References
  • GitHub Security Advisory

  • Debian LTS Announcement

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Advisory

  • Debian Security Advisory
  • Vendor Resources
  • GitHub Security Advisory

  • Puma Commit Details

  • GitHub Security Advisory

  • Ruby Security Announcement
  • Related CVEs
  • CVE-2022-24790: Puma HTTP Request Smuggling Vulnerability

  • CVE-2021-29509: Puma HTTP Server DoS Vulnerability
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