Heap-Based Buffer Overflow in Squid: CVE-2019-12526

squid Updated 02 Oct 2025

Summary

26/11/2019
N/A
Yes i
Critical
9.8

CVE-2019-12526: An issue was discovered in Squid before 4.9. Affects squid across 3 version ranges.

< 4.9-1 < 6cfeb300caf423ff49a0511d8bd43a56f3418273 < fede82b3e7aa1f12a91bade17f6ac0d4c7463e0a

Fixed in 4.9-1. 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 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. However, prior to version 4.9, Squid is vulnerable to a heap-based buffer overflow due to improper handling of URN responses, which can lead to severe security risks.

Vulnerability Detail

CVE-2019-12526 is a critical vulnerability in Squid that arises from its handling of URN response data. When Squid receives data from a remote server in response to a URN request, it does not adequately check if the incoming data fits within the allocated buffer. This oversight allows an attacker to send specially crafted data that can overflow the buffer, leading to potential arbitrary code execution, data corruption, or denial of service. The vulnerability has a CVSS score of 9.8, indicating its high severity and potential impact on affected systems.

How To Fix

Minimum fixed version

4.9-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade squid

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

Workaround

If upgrading is not immediately possible, consider disabling URN requests or restricting access to the Squid proxy to trusted users only. This can help mitigate the risk until a proper fix is applied.

Conclusion

CVE-2019-12526 is a significant vulnerability in Squid that poses serious security risks due to a heap-based buffer overflow. Users are strongly advised to upgrade to the latest version to protect their systems from potential exploitation. Additionally, 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

CVE-2019-12526 is a vulnerability in Squid that allows for a heap-based buffer overflow due to improper handling of URN responses.

Exploitation of this vulnerability can lead to arbitrary code execution, data corruption, or denial of service.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The recommended action is to upgrade Squid to version 4.9-1 or later to mitigate the vulnerability.

Yes, temporarily disable URN requests or restrict access to the Squid proxy until an upgrade can be performed.

Related vulnerabilities

Recent vulnerabilities recorded for squid.

How To Fix

Minimum fixed version

4.9-1

This is the first release that contains the fix.

sudo apt-get install --only-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