CVE-2026-50012: CWE-20: Improper Input Validation in squid-cache squid
A heap-based buffer overflow vulnerability exists in squid-cache squid prior to version 7.6 due to improper input validation in cache digest reply handling. This flaw occurs when a trusted peer sends a maliciously crafted cache digest reply that has an on-the-wire size larger than the declared mask_size, leading to overflow. The vulnerability only affects Squid instances compiled with the --enable-cache-digests option and configured with cache_peer entries. The issue is fixed in version 7.6.
AI Analysis
Technical Summary
CVE-2026-50012 is a medium severity vulnerability in squid-cache squid caused by improper input validation (CWE-20) leading to a heap-based buffer overflow (CWE-122) in the cache digest reply handling function peerDigestSwapInMask. Specifically, the on-the-wire size of a cache digest may exceed the mask_size declared within the digest, allowing a trusted peer to trigger a heap overflow by sending a maliciously crafted reply to a cache_digest request. This vulnerability affects versions prior to 7.6 and requires the software to be compiled with --enable-cache-digests and configured with cache_peer entries. The vulnerability has no known exploits in the wild and is fixed in version 7.6.
Potential Impact
Successful exploitation can cause a heap-based buffer overflow, potentially leading to denial of service or other impacts on availability. The vulnerability does not impact confidentiality but can affect integrity and availability. Exploitation requires a trusted peer with the ability to send crafted cache digest replies, limiting the attack surface.
Mitigation Recommendations
Upgrade squid-cache squid to version 7.6 or later where this vulnerability is fixed. If upgrading is not immediately possible, restrict or monitor trusted peers configured with cache_peer entries and avoid compiling with the --enable-cache-digests option if not needed. Patch status is not explicitly confirmed in the vendor advisory, but the issue is fixed in version 7.6 as stated.
CVE-2026-50012: CWE-20: Improper Input Validation in squid-cache squid
Description
A heap-based buffer overflow vulnerability exists in squid-cache squid prior to version 7.6 due to improper input validation in cache digest reply handling. This flaw occurs when a trusted peer sends a maliciously crafted cache digest reply that has an on-the-wire size larger than the declared mask_size, leading to overflow. The vulnerability only affects Squid instances compiled with the --enable-cache-digests option and configured with cache_peer entries. The issue is fixed in version 7.6.
CVSS v3.1
Score 5.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-50012 is a medium severity vulnerability in squid-cache squid caused by improper input validation (CWE-20) leading to a heap-based buffer overflow (CWE-122) in the cache digest reply handling function peerDigestSwapInMask. Specifically, the on-the-wire size of a cache digest may exceed the mask_size declared within the digest, allowing a trusted peer to trigger a heap overflow by sending a maliciously crafted reply to a cache_digest request. This vulnerability affects versions prior to 7.6 and requires the software to be compiled with --enable-cache-digests and configured with cache_peer entries. The vulnerability has no known exploits in the wild and is fixed in version 7.6.
Potential Impact
Successful exploitation can cause a heap-based buffer overflow, potentially leading to denial of service or other impacts on availability. The vulnerability does not impact confidentiality but can affect integrity and availability. Exploitation requires a trusted peer with the ability to send crafted cache digest replies, limiting the attack surface.
Mitigation Recommendations
Upgrade squid-cache squid to version 7.6 or later where this vulnerability is fixed. If upgrading is not immediately possible, restrict or monitor trusted peers configured with cache_peer entries and avoid compiling with the --enable-cache-digests option if not needed. Patch status is not explicitly confirmed in the vendor advisory, but the issue is fixed in version 7.6 as stated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-02T22:46:02.579Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5907ce68715ace4356ca76
Added to database: 07/16/2026, 16:33:18 UTC
Last enriched: 07/23/2026, 22:45:27 UTC
Last updated: 08/30/2026, 03:43:54 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.