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
    • 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-2026-42256

CVE-2026-42256: Ruby Net::IMAP DOS Vulnerability

CVE-2026-42256 is a denial-of-service flaw in Ruby Net::IMAP that allows hostile servers to launch computational DOS attacks via SCRAM authentication. This article covers technical details, affected versions, and patches.

Published: May 18, 2026

CVE-2026-42256 Overview

CVE-2026-42256 is a denial-of-service vulnerability in the Ruby Net::IMAP library, which implements Internet Message Access Protocol (IMAP) client functionality. The flaw affects versions 0.4.0 through 0.4.23, 0.5.0 through 0.5.13, and 0.6.0 through 0.6.3. When a client authenticates using SCRAM-SHA1 or SCRAM-SHA256, a hostile IMAP server can send an excessively large iteration count value. The client process then performs an unbounded key derivation computation, exhausting CPU resources. The issue is fixed in versions 0.4.24, 0.5.14, and 0.6.4, and is tracked under [CWE-770: Allocation of Resources Without Limits or Throttling].

Critical Impact

A malicious IMAP server can trigger sustained CPU exhaustion in any Ruby client using SCRAM-based authentication, disrupting availability of mail-handling applications.

Affected Products

  • Ruby Net::IMAP versions 0.4.0 to 0.4.23
  • Ruby Net::IMAP versions 0.5.0 to 0.5.13
  • Ruby Net::IMAP versions 0.6.0 to 0.6.3

Discovery Timeline

  • 2026-05-09 - CVE-2026-42256 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42256

Vulnerability Analysis

The vulnerability resides in the Salted Challenge Response Authentication Mechanism (SCRAM) implementation within Net::IMAP. SCRAM authentication requires the client to derive a salted password using PBKDF2 with an iteration count supplied by the server. The Ruby client does not enforce an upper bound on this iteration count. When a hostile or compromised IMAP server returns an extremely large iteration count, the client performs the corresponding number of HMAC computations. This consumes CPU time on the client process and blocks legitimate work. The attack requires only that the victim initiate an IMAP authentication exchange against the attacker's server.

Root Cause

The root cause is missing input validation on the iteration count (often referred to as i=) value returned in the server-first SCRAM message. The client treats the value as trusted and feeds it directly into the PBKDF2 loop. Without a sanity cap, the loop scales linearly with the attacker-controlled value, mapping cleanly to [CWE-770].

Attack Vector

The attack is network-based and requires user interaction in that the client must initiate authentication. An attacker operates a malicious IMAP server, or hijacks a connection, and waits for a Ruby client configured to use SCRAM-SHA1 or SCRAM-SHA256. During the SCRAM handshake the attacker returns a crafted server-first message containing an iteration count many orders of magnitude beyond legitimate values. The Ruby client then enters a long-running key derivation that stalls the process. Repeated connections amplify the impact. Verified technical details are available in the GitHub Security Advisory GHSA-87pf-fpwv-p7m7 and the upstream commits 158d0b5, 808001b, and 99f59ea.

Detection Methods for CVE-2026-42256

Indicators of Compromise

  • Ruby processes pinning a CPU core at 100% shortly after initiating an outbound IMAP session.
  • IMAP authentication exchanges that stall after the server-first SCRAM message without completing the client-final message.
  • Outbound IMAP (tcp/143, tcp/993) connections to untrusted or newly observed hostnames from application servers.

Detection Strategies

  • Inspect IMAP traffic for SCRAM server-first messages containing iteration counts beyond the typical range of 4096 to 600000.
  • Inventory deployed Ruby applications and gem manifests for net-imap versions older than 0.4.24, 0.5.14, or 0.6.4.
  • Correlate IMAP session start events with sustained per-process CPU spikes on the same host.

Monitoring Recommendations

  • Alert on long-running Ruby worker processes that hold a single thread saturated while a TCP connection to an IMAP service remains open.
  • Log and review IMAP server endpoints used by automation, ticketing, and mail-processing pipelines for unexpected destinations.
  • Track net-imap gem versions through software composition analysis on every build.

How to Mitigate CVE-2026-42256

Immediate Actions Required

  • Upgrade net-imap to 0.4.24, 0.5.14, or 0.6.4 depending on the branch in use.
  • Audit all Ruby services that connect to external or user-supplied IMAP servers and prioritize them for patching.
  • Restrict outbound IMAP connections to an allowlist of trusted mail servers.

Patch Information

Fixed releases are published as v0.4.24, v0.5.14, and v0.6.4. The patches add an upper bound on the SCRAM iteration count parsed from the server-first message. Update the gem dependency in Gemfile and run bundle update net-imap to apply the fix.

Workarounds

  • Disable SCRAM-SHA1 and SCRAM-SHA256 authentication mechanisms and use an alternative supported method where feasible.
  • Constrain client IMAP connections to known, trusted servers using egress firewall rules until patching is complete.
  • Run IMAP client code in isolated worker processes with CPU time limits to contain the impact of a stalled handshake.
bash
# Update the gem to a fixed release
bundle update net-imap

# Verify the installed version is patched
gem list net-imap

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRuby

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Technical References
  • GitHub Commit 158d0b5

  • GitHub Commit 808001b

  • GitHub Commit 99f59ea

  • GitHub Release v0.4.24

  • GitHub Release v0.5.14

  • GitHub Release v0.6.4

  • GitHub Security Advisory GHSA-87pf-fpwv-p7m7
  • Related CVEs
  • CVE-2026-42245: Ruby Net::IMAP DoS Vulnerability

  • CVE-2023-36617: Ruby-lang URI DoS Vulnerability

  • CVE-2023-28755: Ruby-lang Uri DoS Vulnerability

  • CVE-2023-28756: Ruby-lang Ruby ReDoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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