CVE-2019-12521
mediumpriority · track · 26EPSS 0.059 · 93 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (26)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (40)
External citations — patches, advisories, analysis.
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.htmlcnnvd
- http://www.openwall.com/lists/oss-security/2020/04/23/1cnnvd
- https://access.redhat.com/security/cve/cve-2019-12521cnnvd
- https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txtcnnvd
- https://lists.debian.org/debian-lts-announce/2020/07/msg00009.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-12521cnnvd
- https://packetstormsecurity.com/files/157688/Gentoo-Linux-Security-Advisory-202005-05.htmlcnnvd
- https://packetstormsecurity.com/files/159859/Red-Hat-Security-Advisory-2020-4743-01.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan