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-2020-25613

CVE-2020-25613: Ruby WEBrick HTTP Request Smuggling Flaw

CVE-2020-25613 is an HTTP Request Smuggling vulnerability in Ruby's bundled WEBrick server that allows attackers to bypass reverse proxy protections. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-25613 Overview

An HTTP Request Smuggling vulnerability was discovered in Ruby's WEBrick, a simple HTTP server bundled with the Ruby programming language. The vulnerability exists because WEBrick did not rigorously check the transfer-encoding header value. An attacker may potentially exploit this issue to bypass a reverse proxy (which also has a poor header check), leading to an HTTP Request Smuggling attack that could allow unauthorized access, cache poisoning, or request hijacking.

Critical Impact

Attackers can exploit lax header validation to smuggle malicious HTTP requests through reverse proxies, potentially bypassing security controls and manipulating backend server behavior.

Affected Products

  • Ruby through 2.5.8
  • Ruby 2.6.x through 2.6.6
  • Ruby 2.7.x through 2.7.1
  • WEBrick (bundled with affected Ruby versions)
  • Fedora 32 and 33

Discovery Timeline

  • 2020-10-06 - CVE-2020-25613 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-25613

Vulnerability Analysis

This vulnerability falls under CWE-444 (Inconsistent Interpretation of HTTP Requests), commonly known as HTTP Request Smuggling. The flaw resides in WEBrick's HTTP request parsing logic, specifically in how it interprets HTTP headers like Connection and Transfer-Encoding.

WEBrick's implementation used overly permissive regular expressions when parsing critical HTTP headers. The regex patterns /close/io and /keep-alive/io would match these strings anywhere within the header value, rather than requiring exact matches. This loose validation allows an attacker to craft ambiguous HTTP requests that are interpreted differently by WEBrick and intermediate proxies.

When a reverse proxy and backend server disagree on where one request ends and another begins, attackers can "smuggle" requests that bypass front-end security controls. This can lead to unauthorized access to restricted resources, web cache poisoning, session hijacking, or bypassing of WAF protections.

Root Cause

The root cause is insufficient input validation of HTTP header values in WEBrick's httprequest.rb file. The regular expressions used to parse the Connection header were not anchored, allowing partial matches. For example, a malicious header value like close, smuggled-data would incorrectly match the /close/io pattern, causing inconsistent request boundary interpretation between the proxy and backend server.

Attack Vector

The attack requires network access to a Ruby application using WEBrick behind a reverse proxy. The attacker sends specially crafted HTTP requests with ambiguous header values that exploit the difference in how the proxy and WEBrick parse requests. This network-based attack requires no authentication or user interaction.

ruby
# Security patch from lib/webrick/httprequest.rb
# Source: https://github.com/ruby/webrick/commit/8946bb38b4d87549f0d99ed73c62c41933f97cc7

         raise HTTPStatus::BadRequest, "bad URI `#{@unparsed_uri}'."
       end
 
-      if /close/io =~ self["connection"]
+      if /\Aclose\z/io =~ self["connection"]
         @keep_alive = false
-      elsif /keep-alive/io =~ self["connection"]
+      elsif /\Akeep-alive\z/io =~ self["connection"]
         @keep_alive = true
       elsif @http_version < "1.1"
         @keep_alive = false

The fix adds anchors (\A for start of string, \z for end of string) to the regular expressions, ensuring exact matches of header values rather than partial matches.

Detection Methods for CVE-2020-25613

Indicators of Compromise

  • Unusual HTTP traffic patterns with malformed or suspicious Transfer-Encoding or Connection headers
  • Log entries showing discrepancies between proxy access logs and backend server logs
  • Requests with multiple or conflicting Transfer-Encoding values (e.g., chunked, identity)
  • Evidence of cache poisoning or unexpected content being served to users

Detection Strategies

  • Monitor HTTP request logs for anomalous header patterns, particularly in Transfer-Encoding and Connection headers
  • Implement intrusion detection rules to flag requests with potentially malicious header combinations
  • Compare front-end proxy logs with backend WEBrick logs to identify request boundary discrepancies
  • Deploy web application firewalls (WAF) with HTTP Request Smuggling detection capabilities

Monitoring Recommendations

  • Enable detailed HTTP request logging on both reverse proxies and WEBrick backends
  • Set up alerts for requests containing unusual header value combinations
  • Monitor for signs of cache poisoning such as unexpected content changes or user complaints
  • Regularly audit Ruby and WEBrick versions across all deployment environments

How to Mitigate CVE-2020-25613

Immediate Actions Required

  • Upgrade Ruby to version 2.5.9, 2.6.7, 2.7.2, or later which contain the security fix
  • Update the WEBrick gem to the patched version if using it as a standalone dependency
  • Review reverse proxy configurations to ensure strict HTTP header validation
  • Consider replacing WEBrick with a more hardened HTTP server for production use

Patch Information

The vulnerability has been addressed in the official Ruby releases. The fix involves modifying the regular expressions in lib/webrick/httprequest.rb to use anchored patterns that require exact header value matches. The security patch is available in the GitHub commit. For detailed information, refer to the Ruby Security Advisory.

Workarounds

  • Configure reverse proxies to normalize and strictly validate Transfer-Encoding and Connection headers before forwarding requests
  • Implement request filtering at the proxy level to reject ambiguous HTTP requests
  • Use a WAF or similar security appliance to detect and block HTTP Request Smuggling attempts
  • Replace WEBrick with alternative servers like Puma or Unicorn in production environments
bash
# Configuration example - Update Ruby using rbenv
rbenv install 2.7.2
rbenv global 2.7.2
ruby -v  # Verify version

# Or update via package manager (Fedora)
sudo dnf update ruby

# Update WEBrick gem if used standalone
gem update webrick

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechRuby

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-444
  • Technical References
  • HackerOne Report #965267

  • Debian LTS Advisory 2023-04

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202401-27

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Commit Update

  • Ruby News CVE-2020-25613
  • Related CVEs
  • CVE-2020-10663: Ruby JSON Gem Object Creation Vulnerability

  • CVE-2025-61594: Ruby-lang Uri Information Disclosure Bug

  • CVE-2024-27282: Ruby Regex Information Disclosure Flaw

  • CVE-2024-27280: Ruby StringIO Buffer Overflow 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