Insecure Certificate Validation in Squid

squid Updated 02 Oct 2025

Summary

18/10/2021
N/A
Yes i
High
7.5

CVE-2021-41611: An issue was discovered in Squid 5.0.6 through 5.1.x before 5.2. Affects squid across 2 version ranges.

< 5.0.6-r2 >= 1521895e24671463bf590cabcdbd2acf637ed2c1, < 74f073ecdc41e96dbf68e63550710fed7b8ad2d2

Fixed in 5.0.6-r2. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Squid is a widely used caching proxy server that provides improved performance and security for web clients. It acts as an intermediary between clients and servers, caching frequently accessed content to reduce bandwidth usage and improve response times. Squid supports various protocols and is commonly used in enterprise environments to enhance network performance. However, a vulnerability has been discovered in Squid versions 5.0.6 through 5.1.x before 5.2, which affects the security trust validation of certificates.

Vulnerability Detail

The vulnerability, identified as CVE-2021-41611, arises from an incorrect classification of certain certificates as trusted during the validation process in Squid. This flaw allows a remote server to obtain security trust improperly. Consequently, this indication of trust may be passed along to clients, potentially granting access to unsafe or hijacked services. Exploiting this vulnerability could lead to unauthorized access, data breaches, or other security compromises.

How To Fix

Minimum fixed version

5.0.6-r2

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

There are no known workarounds for this vulnerability. It is essential to apply the recommended fix by upgrading to Squid 5.2 or later.

Conclusion

Insecure Certificate Validation in Squid (CVE-2021-41611) poses a significant security risk, potentially allowing unauthorized access to compromised or unsafe services. It is crucial to upgrade Squid to version 5.2 or later to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for squid →

Share this vulnerability

FAQ

Squid is a caching proxy server that improves performance and security for web clients by caching frequently accessed content.

Squid versions 5.0.6 through 5.1.x before 5.2 are affected by this vulnerability.

Exploiting this vulnerability could allow a remote server to obtain security trust improperly, potentially granting access to unsafe or hijacked services.

To fix this vulnerability, it is recommended to upgrade Squid to version 5.2 or later.

There are no known workarounds for this vulnerability. Upgrading to Squid 5.2 or later is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for squid.

How To Fix

Minimum fixed version

5.0.6-r2

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