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

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

CVE-2021-31808 is a Denial of Service vulnerability in Squid-cache Squid caused by an input-validation bug. Attackers can exploit this via HTTP Range requests. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-31808 Overview

CVE-2021-31808 is an Integer Overflow vulnerability affecting Squid caching proxy server versions before 4.15 and 5.x before 5.0.6. Due to an input-validation bug in the HTTP Range request handling, a malicious client can send specially crafted requests that trigger a Denial of Service condition, impacting all clients using the affected proxy server.

Critical Impact

Authenticated attackers can exploit this vulnerability remotely to cause a complete Denial of Service against the Squid proxy, disrupting network connectivity for all clients relying on the proxy infrastructure.

Affected Products

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

Discovery Timeline

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

Technical Details for CVE-2021-31808

Vulnerability Analysis

This vulnerability stems from improper input validation in Squid's HTTP Range request processing logic. When handling Range headers, the affected code fails to properly validate integer boundaries, leading to an integer overflow condition (CWE-190). The flaw allows an authenticated attacker to craft malicious HTTP Range requests that cause the proxy server to enter an unstable state, resulting in service disruption for all connected clients.

The vulnerability is network-accessible and requires low privileges to exploit, with no user interaction needed. While the attack does not compromise confidentiality or integrity, it severely impacts service availability by crashing or hanging the proxy server process.

Root Cause

The root cause is an integer overflow vulnerability (CWE-190) in the Range request header parsing code. When processing HTTP Range requests, Squid performs arithmetic operations on user-supplied range values without adequate boundary checking. This allows attackers to provide range values that cause integer overflow when processed, leading to unexpected behavior and service disruption.

Attack Vector

The attack is executed remotely over the network by an authenticated client sending specially crafted HTTP Range requests to the Squid proxy server. The attacker must have valid credentials to access the proxy (low privilege requirement), but once authenticated, can trigger the vulnerability by submitting malformed Range headers that exploit the integer overflow condition in the request processing logic.

The exploitation process involves crafting HTTP Range request headers with values designed to trigger arithmetic overflow during processing. When the vulnerable code performs calculations on these values, the overflow results in incorrect memory access patterns or infinite loops that cause the proxy service to become unresponsive.

Detection Methods for CVE-2021-31808

Indicators of Compromise

  • Unusual volume of HTTP Range requests from specific client IP addresses
  • Squid proxy service crashes or unexpected restarts
  • Memory consumption anomalies in the Squid process
  • Client connectivity issues across the proxy infrastructure

Detection Strategies

  • Monitor Squid access logs for abnormal Range header patterns or unusually large range values
  • Implement alerting on Squid process crashes or service interruptions
  • Deploy network intrusion detection rules to identify malformed HTTP Range requests
  • Review system logs for out-of-memory errors or segmentation faults related to the Squid process

Monitoring Recommendations

  • Configure real-time monitoring for Squid service availability and process health
  • Establish baseline metrics for HTTP Range request frequency and alert on deviations
  • Enable detailed logging of Range request headers for forensic analysis
  • Implement automated service recovery procedures with alerting on restart events

How to Mitigate CVE-2021-31808

Immediate Actions Required

  • Upgrade Squid to version 4.15 or later for the 4.x branch
  • Upgrade Squid to version 5.0.6 or later for the 5.x branch
  • Apply vendor-supplied patches immediately if upgrade is not possible
  • Review and restrict proxy access to trusted clients only

Patch Information

Official patches and updated packages are available from Squid-cache and major Linux distributions:

  • Squid Cache Patch File - Official patch for Squid 4.x
  • GitHub Security Advisory - Detailed advisory with remediation guidance
  • Debian Security Advisory DSA-4924 - Debian package updates
  • NetApp Security Advisory - NetApp Cloud Manager guidance

Workarounds

  • Implement strict access control lists (ACLs) to limit proxy access to trusted clients only
  • Consider temporarily disabling Range request support if operationally feasible
  • Deploy a web application firewall (WAF) to filter malicious Range headers
  • Implement rate limiting on incoming requests to reduce DoS impact
bash
# Example Squid ACL to restrict client access
# Add to squid.conf to limit proxy access to trusted networks
acl trusted_networks src 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
http_access allow trusted_networks
http_access deny all

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 Probability0.33%

  • 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-190
  • Technical References
  • Full Disclosure Announcement

  • Openwall OSS Security Update

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Debian Security Advisory
  • Vendor Resources
  • Squid Cache Patch File

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