VDB

CVE-2019-12521

CVE-2019-12521 PUBLISHED

Reported by mitre · Published April 15, 2020

An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via addStackElement. addStackElement has a check for the number of elements in this buffer, but it's off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure so it can't affect adjacent memory blocks, and thus just leads to a crash while processing.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
squid3Ubuntu:16.04:LTS3.5.12-1ubuntu7.11
squidsquid-cache5.0.1, 4.7, 3.5.28

Affected products

VendorProductVersions
n/an/an/a
n/an/a*
amazon:2squid-migration-script0
archsquid0
amazon:2squid0
alpinesquid0
amazon:2squid-sysvinit0

Timeline

  • Apr 15, 2020 CVE Published
  • Apr 16, 2020 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (6 in total, the first dated here)
  • Sep 15, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-12521
vulnetix vdb fixes CVE-2019-12521

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-12521/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›