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-8184

CVE-2020-8184: Rack Cookie Prefix Bypass Vulnerability

CVE-2020-8184 is an authentication bypass flaw in Rack that allows attackers to forge secure or host-only cookie prefixes due to missing validation checks. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-8184 Overview

CVE-2020-8184 is an input validation vulnerability affecting the Rack middleware library for Ruby web applications. The vulnerability stems from a reliance on cookies without proper validation or integrity checks, allowing attackers to forge secure or host-only cookie prefixes. This security flaw exists in Rack versions prior to 2.2.3 and 2.1.4, potentially enabling malicious actors to bypass cookie-based security mechanisms in affected Ruby web applications.

Critical Impact

Attackers can forge __Secure- and __Host- cookie prefixes, bypassing browser security protections designed to prevent cookie manipulation and potentially hijacking user sessions or performing unauthorized actions.

Affected Products

  • Rack Project Rack (versions < 2.2.3 and < 2.1.4)
  • Debian Linux 9.0 and 10.0
  • Canonical Ubuntu Linux 18.04 LTS

Discovery Timeline

  • 2020-06-19 - CVE-2020-8184 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-8184

Vulnerability Analysis

This vulnerability exploits a fundamental weakness in how Rack processes cookie prefixes. Modern browsers implement security features through cookie prefixes—specifically __Secure- and __Host-—which are designed to provide additional protections for sensitive cookies. The __Secure- prefix requires cookies to be set with the Secure attribute over HTTPS connections, while __Host- adds additional restrictions including path requirements.

The flaw exists because Rack versions prior to 2.2.3 and 2.1.4 fail to properly validate or verify the integrity of these cookie prefixes when parsing incoming HTTP requests. This oversight creates an opportunity for attackers to craft malicious cookies that appear to have been set with security prefixes when they were not legitimately created through secure channels.

The vulnerability is classified under CWE-784 (Reliance on Cookies without Validation and Integrity Checking in a Security Decision) and CWE-20 (Improper Input Validation), highlighting the core issue of trusting user-supplied cookie data without adequate verification.

Root Cause

The root cause lies in Rack's cookie parsing implementation, which does not enforce proper validation of cookie prefix claims. When processing incoming requests, the middleware accepts cookies with security prefixes at face value without verifying that they were actually set under the conditions required by those prefixes. This creates a trust boundary violation where server-side code may incorrectly assume cookies with __Secure- or __Host- prefixes have the security guarantees those prefixes are meant to provide.

Attack Vector

An attacker can exploit this vulnerability by crafting HTTP requests containing forged cookies with __Secure- or __Host- prefixes. The attack is network-based and requires no authentication or user interaction. The attacker sends specially crafted cookie headers to the vulnerable application, which processes them as if they were legitimately secured cookies.

The attack flow involves:

  1. Identifying a target application using a vulnerable Rack version
  2. Crafting malicious HTTP requests with forged cookie prefixes
  3. Sending requests to the application server
  4. The vulnerable Rack middleware accepting the forged cookies without validation
  5. Application logic potentially making security decisions based on the forged cookie attributes

For technical details on the vulnerability mechanism, refer to the HackerOne Report #895727 and the Ruby on Rails Security Discussion.

Detection Methods for CVE-2020-8184

Indicators of Compromise

  • Unusual HTTP requests containing __Secure- or __Host- prefixed cookies from non-HTTPS connections
  • Cookie manipulation attempts in web application logs showing prefix forgery patterns
  • Session-related anomalies where user sessions behave inconsistently with expected security constraints
  • Authentication bypass indicators correlating with cookie-based security decisions

Detection Strategies

  • Implement web application firewall rules to detect cookie header manipulation attempts targeting prefix forgery
  • Monitor application logs for requests containing suspicious cookie patterns that violate prefix requirements
  • Deploy runtime application self-protection (RASP) solutions to detect cookie validation bypass attempts
  • Use SentinelOne Singularity to monitor Ruby/Rack application behavior for exploitation indicators

Monitoring Recommendations

  • Enable detailed HTTP request logging to capture full cookie headers for forensic analysis
  • Configure alerting on applications using Rack versions below 2.2.3 or 2.1.4
  • Monitor for authentication anomalies in applications relying on cookie-based security decisions
  • Review web server access logs for patterns indicating cookie prefix manipulation attempts

How to Mitigate CVE-2020-8184

Immediate Actions Required

  • Upgrade Rack to version 2.2.3 or later (for the 2.2.x branch) or 2.1.4 or later (for the 2.1.x branch)
  • Audit applications for security logic that relies on cookie prefix validation
  • Review and update dependency manifests (Gemfile, gemspec) to enforce minimum Rack versions
  • Apply operating system security patches for Debian and Ubuntu systems using packaged Rack versions

Patch Information

The vulnerability has been addressed in Rack versions 2.2.3 and 2.1.4. Security patches are also available through Linux distribution package managers. Refer to the Debian LTS Security Advisory and Ubuntu Security Notice USN-4561-1 for distribution-specific patch information.

For Ruby applications using Bundler, update your Gemfile to specify minimum secure versions and run bundle update rack to apply the fix.

Workarounds

  • Implement additional server-side validation of cookie integrity independent of Rack's parsing
  • Deploy web application firewall rules to reject requests with suspicious cookie prefix patterns
  • Use application-level cookie verification that does not rely solely on prefix-based security assumptions
  • Consider implementing signed or encrypted cookies with application-managed integrity checks
bash
# Update Rack in Ruby applications
bundle update rack

# Verify installed version
bundle show rack

# For Debian/Ubuntu systems
sudo apt-get update && sudo apt-get install --only-upgrade ruby-rack

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRack Project

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.79%

  • 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-784

  • CWE-20
  • Technical References
  • Debian LTS Security Advisory 2020

  • Debian LTS Security Advisory 2023

  • Ubuntu Security Notice USN-4561-1
  • Vendor Resources
  • Ruby on Rails Security Discussion

  • HackerOne Report #895727
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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