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

CVE-2021-31807: Squid-cache Squid DOS Vulnerability

CVE-2021-31807 is a denial of service flaw in Squid-cache Squid caused by an integer overflow in HTTP Range request handling. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-31807 Overview

An integer overflow vulnerability was discovered in Squid, the popular open-source caching proxy server. This flaw exists in versions prior to 4.15 and 5.x versions before 5.0.6, allowing a remote server to cause a Denial of Service (DoS) condition when delivering responses to HTTP Range requests. The vulnerability is particularly concerning because the trigger is a header that can legitimately exist in normal HTTP traffic without any malicious intent, making it difficult to distinguish attacks from regular operations.

Critical Impact

Remote attackers can exploit this integer overflow to crash Squid proxy servers, disrupting network operations and potentially affecting all clients dependent on the proxy for internet access.

Affected Products

  • Squid-cache Squid (versions prior to 4.15 and 5.x before 5.0.6)
  • Fedora Project Fedora (versions 33 and 34)
  • NetApp Cloud Manager

Discovery Timeline

  • June 8, 2021 - CVE-2021-31807 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-31807

Vulnerability Analysis

This vulnerability stems from an integer overflow condition (CWE-190) in Squid's handling of HTTP Range request responses. HTTP Range requests allow clients to request specific byte ranges from a resource, which is commonly used for resumable downloads, video streaming, and partial content delivery. When Squid processes responses containing Range headers from upstream servers, an integer overflow can occur during the calculation of byte ranges, leading to unexpected behavior and service disruption.

The issue is exploitable over the network and requires low privileges to trigger. An attacker operating a malicious web server can craft HTTP responses with specially constructed Range headers that trigger the integer overflow when processed by a vulnerable Squid proxy. Since Range headers are a standard part of HTTP/1.1 and commonly appear in legitimate traffic, filtering malicious requests presents a significant challenge.

Root Cause

The root cause is an integer overflow vulnerability (CWE-190) in Squid's response parsing logic for HTTP Range requests. When calculating byte range boundaries from server responses, the code fails to properly validate that the arithmetic operations will not overflow integer boundaries. This can result in unexpected values being used for memory allocations or buffer operations, ultimately causing the proxy to crash or become unresponsive.

Attack Vector

The attack is conducted over the network where a remote malicious server delivers crafted HTTP responses to Range requests initiated through the Squid proxy. The attack flow proceeds as follows:

  1. A client behind the Squid proxy initiates a request that results in a Range request to a malicious server
  2. The malicious server responds with a specially crafted Content-Range header containing values designed to trigger integer overflow
  3. Squid processes the response and performs arithmetic operations on the range values
  4. The integer overflow causes incorrect calculations, leading to denial of service

Since HTTP Range headers are legitimate components of HTTP traffic, the malicious payload can appear benign during standard traffic inspection. The vulnerability can be triggered without any authentication, making it accessible to any server that can be contacted through the vulnerable proxy.

Detection Methods for CVE-2021-31807

Indicators of Compromise

  • Unexpected Squid proxy crashes or service restarts, particularly when processing content from specific external servers
  • Log entries indicating abnormal Range header processing or memory-related errors in Squid logs
  • Increased frequency of HTTP 503 or 502 errors returned to proxy clients
  • Crash dumps or core files generated by Squid processes showing failures in range parsing functions

Detection Strategies

  • Monitor Squid proxy stability and implement alerting for unexpected process terminations or restarts
  • Analyze HTTP response headers from upstream servers for unusually large or malformed Content-Range values
  • Deploy network intrusion detection signatures to identify HTTP responses with suspicious Range header patterns
  • Review Squid access and cache logs for anomalous patterns involving partial content responses

Monitoring Recommendations

  • Implement health checks for Squid proxy services with automatic alerting on availability changes
  • Configure centralized logging for Squid instances to enable correlation of crash events with specific upstream servers
  • Monitor system resources on Squid hosts for signs of resource exhaustion or abnormal memory usage patterns
  • Establish baseline metrics for proxy restarts and alert on deviations from normal operational patterns

How to Mitigate CVE-2021-31807

Immediate Actions Required

  • Upgrade Squid to version 4.15 or later for the 4.x branch, or version 5.0.6 or later for the 5.x branch
  • Review upstream server configurations and consider blocking connections to untrusted external servers where possible
  • Implement proxy availability monitoring to quickly detect and respond to DoS conditions
  • Consider deploying redundant proxy infrastructure to maintain service availability during potential attacks

Patch Information

Security patches are available from the Squid project. The official patch for version 4.x is available through the Squid Cache Patch repository. Additional security information can be found in the GitHub Security Advisory. Fedora users should apply updates announced through the Fedora Package Announcement. Debian LTS users should consult the Debian LTS Announcement. NetApp customers should review the NetApp Security Advisory for Cloud Manager guidance.

Workarounds

  • If immediate patching is not possible, consider implementing upstream server whitelisting to reduce exposure to malicious servers
  • Deploy a web application firewall or reverse proxy in front of Squid to inspect and filter potentially malicious Range headers
  • Configure rate limiting on proxy connections to reduce the impact of exploitation attempts
  • Implement automated proxy restart mechanisms to minimize downtime in case of crashes
bash
# Verify Squid version to determine vulnerability status
squid -v | grep "Squid Cache"

# Check current Squid service status
systemctl status squid

# Apply updates on Debian/Ubuntu systems
apt-get update && apt-get install --only-upgrade squid

# Apply updates on RHEL/CentOS/Fedora systems
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 Probability33.71%

  • 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 Mailing List

  • Openwall OSS Security Update

  • GitHub Security Advisory

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • Squid Cache Patch
  • 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