Vulnerability · Published Jul 16, 2026 · Assigned by GitHub_M
CVE-2026-50012Squid: Memory corruption in cache_digest reply handling
Medium 5.5
In plain English
A medium-severity improper input validation in squid from squid-cache. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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/peer_digest.cc), Squid is vulnerable to a heap-based buffer overflow: a cache digest's on-the-wire size may be larger than the mask_size declared within the digest, so a trusted peer sending a maliciously crafted reply to a cache_digest request message can trigger the overflow. This attack is limited to Squid instances compiled with the --enable-cache-digests option and configured with cache_peer entries. This issue is fixed in version 7.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | squid | 7.6-r0 | ALPINE-CVE-2026-50012 |
| Alpine:v3.24 | squid | 7.6-r0 | ALPINE-CVE-2026-50012 |
| Debian:12 | squid | 5.7-2+deb12u6 | DEBIAN-CVE-2026-50012 |
| Debian:13 | squid | 6.13-2+deb13u2 | DEBIAN-CVE-2026-50012 |
| Debian:14 | squid | 7.6-1 | DEBIAN-CVE-2026-50012 |
| Ubuntu:22.04:LTS | squid | 5.9-0ubuntu0.22.04.8 | USN-8941-1 |
| Ubuntu:22.04:LTS | squid | 5.9-0ubuntu0.22.04.7 | UBUNTU-CVE-2026-50012 |
| Ubuntu:24.04:LTS | squid | 6.14-0ubuntu0.24.04.4 | UBUNTU-CVE-2026-50012 |
| Ubuntu:24.04:LTS | squid | 6.14-0ubuntu0.24.04.5 | USN-8941-1 |
| Ubuntu:25.10 | squid | 6.14-0ubuntu0.25.10.4 | UBUNTU-CVE-2026-50012 |
| Ubuntu:26.04:LTS | squid | 7.2-2ubuntu2.2 | UBUNTU-CVE-2026-50012 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| squid-cache | squid | < 7.6 |
Weakness: CWE-20, CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H
References
- https://github.com/squid-cache/squid/security/advisories/GHSA-5vmx-9x64-9284 x_refsource_CONFIRM
- https://github.com/squid-cache/squid/pull/2423 x_refsource_MISC
- https://github.com/squid-cache/squid/commit/19fcfe922717c8b255270c032dcde4071c003bcd x_refsource_MISC
- https://github.com/squid-cache/squid/releases/tag/SQUID_7_6 x_refsource_MISC