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-2021-31806

CVE-2021-31806: Squid-cache Squid DoS Vulnerability

CVE-2021-31806 is a denial of service flaw in Squid-cache Squid caused by a memory-management bug in HTTP Range request processing. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-31806 Overview

CVE-2021-31806 is a Denial of Service (DoS) vulnerability discovered in Squid proxy server versions before 4.15 and 5.x before 5.0.6. The vulnerability stems from a memory-management bug in the HTTP Range request processing functionality. When exploited, this flaw allows an authenticated attacker to disrupt proxy services for all clients using the affected Squid instance.

Critical Impact

Successful exploitation enables attackers to deny service to all clients using the vulnerable Squid proxy through malicious HTTP Range requests, potentially disrupting network access for entire organizations.

Affected Products

  • Squid-cache Squid (versions before 4.15 and 5.x before 5.0.6)
  • Debian Linux 9.0 and 10.0
  • Fedora 33 and 34
  • NetApp Cloud Manager

Discovery Timeline

  • 2021-05-27 - CVE-2021-31806 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31806

Vulnerability Analysis

This vulnerability is classified under CWE-116 (Improper Encoding or Escaping of Output), though its practical impact manifests as a memory management issue. The flaw resides in how Squid handles HTTP Range request processing, a feature commonly used for partial content retrieval and resumable downloads.

When processing specially crafted HTTP Range requests, Squid's memory management routines fail to properly handle certain edge cases. This improper handling leads to memory corruption or exhaustion that affects the stability of the entire proxy service. Since Squid operates as a centralized proxy for potentially hundreds or thousands of client connections, a successful exploit impacts all users relying on the proxy server.

The network-based attack vector with low complexity makes this vulnerability particularly concerning for organizations using Squid as their primary web proxy infrastructure. Authentication is required to exploit this vulnerability, which provides some mitigation against anonymous internet-based attacks.

Root Cause

The root cause of CVE-2021-31806 lies in improper memory management within Squid's HTTP Range request handler. When processing Range headers, the code fails to correctly validate or handle certain memory allocation scenarios, leading to memory corruption. This bug exists in the content delivery mechanism that handles byte-range specifications in HTTP requests.

Attack Vector

The attack is executed over the network without requiring user interaction. An authenticated attacker can send maliciously crafted HTTP requests containing specific Range header values to the vulnerable Squid proxy. Upon processing these requests, the memory management bug is triggered, causing service disruption.

The exploitation scenario involves an attacker with valid proxy authentication credentials sending requests with manipulated Range headers. While the exact manipulation required depends on the specific code path, the general approach targets the boundary conditions in Range request parsing where memory allocation assumptions may be violated.

Detection Methods for CVE-2021-31806

Indicators of Compromise

  • Unexpected Squid proxy crashes or service restarts
  • Elevated memory usage patterns on Squid servers prior to service failures
  • Anomalous HTTP Range request patterns in proxy access logs
  • Client complaints about intermittent proxy unavailability

Detection Strategies

  • Monitor Squid process stability and implement alerting on unexpected service restarts
  • Analyze HTTP access logs for unusual Range header patterns or excessive Range requests from single sources
  • Implement network-level inspection for malformed or suspicious HTTP Range headers
  • Deploy version detection scanning to identify unpatched Squid installations

Monitoring Recommendations

  • Configure Squid cache manager to expose health metrics for continuous monitoring
  • Set up log aggregation to correlate Range request patterns across time periods
  • Implement memory utilization alerts on Squid servers to detect resource exhaustion attempts
  • Monitor client-reported errors that may indicate proxy service degradation

How to Mitigate CVE-2021-31806

Immediate Actions Required

  • Upgrade Squid to version 4.15 or later (for 4.x branch) or version 5.0.6 or later (for 5.x branch)
  • Apply vendor-provided security patches from distribution repositories (Debian, Fedora, etc.)
  • Review and restrict proxy authentication to minimize potential attackers
  • Implement monitoring for Squid service availability and resource utilization

Patch Information

Official patches are available from multiple sources. The Squid project has released the fix as patch squid-4-e7cf864f938f24eea8af0692c04d16790983c823 for the 4.x branch. Detailed information about the vulnerability and remediation is available in the GitHub Squid Security Advisory.

Distribution-specific updates are available:

  • Debian users should reference DSA-4924 and the Debian LTS Announcement
  • Fedora users can obtain updates through Fedora Package Announcements
  • NetApp customers should consult the NetApp Security Advisory NTAP-20210716-0007

Workarounds

  • Restrict proxy access to trusted, authenticated users only to reduce attack surface
  • Implement rate limiting on HTTP requests with Range headers
  • Consider deploying a web application firewall (WAF) in front of Squid to filter suspicious Range requests
  • Segment Squid proxy infrastructure to limit blast radius of potential DoS attacks
bash
# Verify current Squid version
squid -v | head -n 1

# Check for available security updates (Debian/Ubuntu)
apt-get update && apt-cache policy squid

# Apply security patches (Debian/Ubuntu)
apt-get update && apt-get install --only-upgrade squid

# Apply security patches (RHEL/Fedora)
dnf update squid

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechSquid

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability85.99%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-116
  • Technical References
  • Full Disclosure Mailing List Update

  • Openwall OSS-Security List Post

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement 2

  • NetApp Security Advisory NTAP-20210716-0007

  • Debian Security Advisory DSA-4924
  • Vendor Resources
  • Squid Cache Patch Changeset

  • GitHub Squid Security Advisory
  • Related CVEs
  • CVE-2026-32748: Squid-cache Squid DoS Vulnerability

  • CVE-2026-33526: Squid Caching Proxy DoS Vulnerability

  • CVE-2023-5824: Squid-cache Squid DOS Vulnerability

  • CVE-2023-50269: Squid-cache Squid DOS 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