Vulnerabilities · 2019 · Squid-cache
CVE-2019-12521
Squid-cache Squid vulnerability
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.
Affected products
Squid, Ubuntu Linux, Debian Linux, Leap. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Squid-cache Squid runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.openwall.com/lists/oss-security/2020/04/23/1 · Patch
- lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html · Third Party Advisory
- gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/07/msg00009.html · Third Party Advisory
- security.gentoo.org/glsa/202005-05 · Third Party Advisory
- security.netapp.com/advisory/ntap-20210205-0006/ · Third Party Advisory
- usn.ubuntu.com/4356-1/ · Third Party Advisory
- www.debian.org/security/2020/dsa-4682 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-12521
- cve.org/CVERecord?id=CVE-2019-12521
More vulnerabilities in Squid-cache products
CVE-2025-62168CVE-2025-59362CVE-2025-54574CVE-2024-45802CVE-2024-37894CVE-2024-25617CVE-2024-25111CVE-2024-23638All 106
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.