{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "7.6"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a440c2af73b394fc31539a4f85bfb5d5ed47dd9a"
            },
            {
              "fixed": "19fcfe922717c8b255270c032dcde4071c003bcd"
            }
          ],
          "repo": "https://github.com/squid-cache/squid",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5vmx-9x64-9284"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-122",
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50012.json"
  },
  "details": "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.",
  "id": "CVE-2026-50012",
  "modified": "2026-08-12T03:51:46.899884953Z",
  "published": "2026-07-16T16:11:34.488Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/squid-cache/squid/releases/tag/SQUID_7_6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50012.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/squid-cache/squid/security/advisories/GHSA-5vmx-9x64-9284"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50012"
    },
    {
      "type": "FIX",
      "url": "https://github.com/squid-cache/squid/commit/19fcfe922717c8b255270c032dcde4071c003bcd"
    },
    {
      "type": "FIX",
      "url": "https://github.com/squid-cache/squid/pull/2423"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Squid: Memory corruption in cache_digest reply handling"
}