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-31808: 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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, reducing bandwidth usage, and enhancing response times. However, Squid is susceptible to certain vulnerabilities that can compromise its functionality and the security of the systems relying on it.

Vulnerability Detail

An issue was discovered in Squid before version 4.15 and in the 5.x series before version 5.0.6. This vulnerability arises from an input-validation bug that allows an attacker to exploit the proxy server through a crafted HTTP Range request. The result is a Denial of Service (DoS) attack, which can disrupt service for all clients utilizing the proxy. The technical implications of this vulnerability are significant, as it can lead to service outages and impact the availability of web resources for users.

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 measure, users can restrict access to the proxy server or disable HTTP Range requests until the package is updated. This can be done by modifying the Squid configuration file to deny such requests.

Conclusion

The Denial of Service vulnerability in Squid poses a significant risk to users relying on this proxy server. It is crucial to update to the latest patched versions to mitigate the risk and ensure continued service availability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for squid →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 6.5, indicating a medium severity level.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

The primary impact is a Denial of Service attack, which can render the proxy server unavailable to clients, affecting web access and performance.

Yes, versions 4.15-r0 and 5.0.6-r0 and later are patched and safe to use.

Detailed information can be found in the CVE database or through the Alpine Linux security advisories.

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