CVE-2026-50012: Squid: Memory corruption in cache_digest reply handling
Last updated 7 August 2026
Other sources
Squid is a caching proxy for the Web. Prior to 7.6, due to an improper input validation bug in cache digest reply handling (peerDigestSwapInMask in src/peerdigest.cc), Squid is vulnerable to a heap-based buffer overflow: a cache digest's on-the-wire size may be larger than the masksize declared within the digest, so a trusted peer sending a maliciously crafted reply to a cachedigest request message can trigger the overflow. This attack is limited to Squid instances compiled with the --enable-cache-digests option and configured with cachepeer entries. This issue is fixed in version 7.6.
— MITRE
Squid: Memory corruption in cachedigest reply handling
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.13-5 - Upgrade
Upgrade
debian/squidto a version that resolves this vulnerability.Fixed in 4.13-10+deb11u7Fixed in 5.7-2+deb12u6Fixed in 6.13-2+deb13u2Fixed in 7.6-1 - Upgrade
Upgrade
ubuntu/squid3to a version that resolves this vulnerability.Fixed in 3.5.12-1ubuntu7.16+esm7 - Upgrade
Upgrade
ubuntu/squid3to a version that resolves this vulnerability.Fixed in 3.5.27-1ubuntu1.14+esm6 - Upgrade
Upgrade
ubuntu/squidto a version that resolves this vulnerability.Fixed in 4.10-1ubuntu1.13+esm3 - Upgrade
Upgrade
ubuntu/squidto a version that resolves this vulnerability.Fixed in 5.9-0ubuntu0.22.04.7 - Upgrade
Upgrade
ubuntu/squidto a version that resolves this vulnerability.Fixed in 6.14-0ubuntu0.24.04.4 - Upgrade
Upgrade
ubuntu/squidto a version that resolves this vulnerability.Fixed in 6.14-0ubuntu0.25.10.4 - Upgrade
Upgrade
ubuntu/squidto a version that resolves this vulnerability.Fixed in 7.2-2ubuntu2.2 - Upgrade
Upgrade
azurelinux/squidto a version that resolves this vulnerability.Fixed in 6.13-5 - Upgrade
Upgrade
Squidto a version that resolves this vulnerability.Fixed in 7.6
Event History
Frequently Asked Questions
What is the severity of CVE-2026-50012?
The severity of CVE-2026-50012 is classified as high due to its potential to allow unauthorized access.
How do I fix CVE-2026-50012?
To mitigate CVE-2026-50012, update your Squid installation to the latest version that includes the security patch.
What systems are affected by CVE-2026-50012?
CVE-2026-50012 affects all versions of Squid prior to the patched release.
What types of attacks can exploit CVE-2026-50012?
CVE-2026-50012 can be exploited to launch unauthorized actions against the Squid server due to improper access controls.
Is there a workaround for CVE-2026-50012 if I cannot update?
As a temporary workaround for CVE-2026-50012, you can restrict access by modifying the Squid configuration to limit user permissions.