CVE-2026-50012: CWE-20: Improper Input Validation in squid-cache squid
A heap-based buffer overflow vulnerability exists in squid-cache's handling of cache digest replies prior to version 7.6. This occurs due to improper input validation in the peerDigestSwapInMask function, where the on-the-wire size of a cache digest may exceed the declared mask_size. The vulnerability can be triggered by a trusted peer sending a maliciously crafted reply when Squid is compiled with --enable-cache-digests and configured with cache_peer entries. This issue is fixed in version 7.6.
AI Analysis
Technical Summary
CVE-2026-50012 describes a heap-based buffer overflow in squid-cache versions before 7.6 caused by improper input validation in the cache digest reply handling code (peerDigestSwapInMask in src/peer_digest.cc). Specifically, the size of a cache digest received over the network can be larger than the declared mask_size, allowing a trusted peer to trigger a buffer overflow by sending a maliciously crafted reply to a cache_digest request. This vulnerability only affects Squid instances compiled with the --enable-cache-digests option and configured with cache_peer entries. The issue is resolved in Squid version 7.6.
Potential Impact
The vulnerability allows a trusted peer to cause a heap-based buffer overflow, which can result in denial of service or potentially other impacts related to memory corruption. The CVSS 3.1 base score is 5.5 (medium severity), reflecting network attack vector, low attack complexity, required high privileges, no user interaction, unchanged scope, no confidentiality impact, low integrity impact, and high availability impact.
Mitigation Recommendations
Upgrade to Squid version 7.6 or later, where this vulnerability is fixed. If upgrading is not immediately possible, ensure that Squid is not compiled with the --enable-cache-digests option or that cache_peer entries are not configured, as the vulnerability requires both conditions. Patch status is not explicitly stated beyond the fix in version 7.6; check the vendor advisory for the latest remediation guidance.
CVE-2026-50012: CWE-20: Improper Input Validation in squid-cache squid
Description
A heap-based buffer overflow vulnerability exists in squid-cache's handling of cache digest replies prior to version 7.6. This occurs due to improper input validation in the peerDigestSwapInMask function, where the on-the-wire size of a cache digest may exceed the declared mask_size. The vulnerability can be triggered by a trusted peer sending a maliciously crafted reply when Squid is compiled with --enable-cache-digests and configured with cache_peer entries. This 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 describes a heap-based buffer overflow in squid-cache versions before 7.6 caused by improper input validation in the cache digest reply handling code (peerDigestSwapInMask in src/peer_digest.cc). Specifically, the size of a cache digest received over the network can be larger than the declared mask_size, allowing a trusted peer to trigger a buffer overflow by sending a maliciously crafted reply to a cache_digest request. This vulnerability only affects Squid instances compiled with the --enable-cache-digests option and configured with cache_peer entries. The issue is resolved in Squid version 7.6.
Potential Impact
The vulnerability allows a trusted peer to cause a heap-based buffer overflow, which can result in denial of service or potentially other impacts related to memory corruption. The CVSS 3.1 base score is 5.5 (medium severity), reflecting network attack vector, low attack complexity, required high privileges, no user interaction, unchanged scope, no confidentiality impact, low integrity impact, and high availability impact.
Mitigation Recommendations
Upgrade to Squid version 7.6 or later, where this vulnerability is fixed. If upgrading is not immediately possible, ensure that Squid is not compiled with the --enable-cache-digests option or that cache_peer entries are not configured, as the vulnerability requires both conditions. Patch status is not explicitly stated beyond the fix in version 7.6; check the vendor advisory for the latest remediation guidance.
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/16/2026, 16:48:53 UTC
Last updated: 07/17/2026, 01:05:37 UTC
Views: 9
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.