Denial of Service Vulnerability in Squid Proxy Server

squid Updated 02 Oct 2025

Summary

27/05/2021
N/A
Yes i
Medium
6.5

ALPINE-CVE-2021-31806: An issue was discovered in Squid before 4.15 and 5.x before 5.0.6. Affects squid versions < 4.15-r0. Fixed in 4.15-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Squid is a widely used caching proxy for the web that supports HTTP, HTTPS, FTP, and more. It is designed to improve web performance by caching frequently requested content and reducing bandwidth usage. Squid is often deployed in enterprise environments to manage web traffic and enhance security. However, it has been found to be vulnerable to a Denial of Service (DoS) attack due to a memory-management bug, which can affect all clients using the proxy.

Vulnerability Detail

The vulnerability, identified as CVE-2021-31806, arises from improper handling of HTTP Range requests in Squid versions prior to 4.15 and 5.x before 5.0.6. This flaw allows an attacker to exploit the memory-management bug, potentially leading to a Denial of Service condition. When exploited, it can cause the Squid proxy server to become unresponsive, impacting all clients relying on it for web access. The CVSS score for this vulnerability is 6.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

4.15-r0

This is the first release that contains the fix.

sudo apk add --upgrade squid

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can limit the use of HTTP Range requests or implement firewall rules to block suspicious traffic targeting the Squid proxy. However, this is not a permanent solution and should only be used until the package is updated.

Conclusion

The vulnerability CVE-2021-31806 in the Squid proxy server poses a significant risk of Denial of Service attacks due to a memory-management issue. It is crucial for users to update their installations to the latest patched versions to mitigate this risk. Monitoring tools like Vulert can assist in identifying such vulnerabilities in your software.

See every vulnerability recorded for squid →

Share this vulnerability

FAQ

CVE-2021-31806 is a vulnerability in the Squid proxy server that allows for Denial of Service attacks due to a memory-management bug.

If you are running Squid versions prior to 4.15 or 5.x before 5.0.6, your installation is vulnerable. You can check your version using the command squid -v.

Exploitation of this vulnerability can lead to a Denial of Service condition, causing the Squid proxy server to become unresponsive for all clients relying on it.

Yes, tools like Vulert can monitor and alert for open-source vulnerabilities in your software by analyzing manifest files such as package-lock.json.

Detailed information about CVE-2021-31806 can be found in the official CVE database and security advisories related to Squid.

Related vulnerabilities

Recent vulnerabilities recorded for squid.

How To Fix

Minimum fixed version

4.15-r0

This is the first release that contains the fix.

sudo apk add --upgrade squid

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback