# CVE-2019-12521

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-04-15 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2019-12521, UBUNTU-CVE-2019-12521, DEBIAN-CVE-2019-12521
- Record: https://cvemate.com/vulnerability/CVE-2019-12521 · JSON: https://cvemate.com/vulnerability/CVE-2019-12521/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 5.909%, percentile 93.43%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine squid (Alpine Linux): ≥ 3.0, \< 4.11-r0 \| ≥ 4.0, \< 4.11-r0
- canonical ubuntu\_linux: 16.04 \| 18.04 \| 19.10 \| 20.04
- debian squid (Debian): \< 4.11-1
- ubuntu squid (Ubuntu): \< 4.10-1ubuntu1.1
- ubuntu squid3 (Ubuntu): \< 3.5.12-1ubuntu7.11 \| \< 3.5.27-1ubuntu1.6
- debian debian\_linux: 9.0 \| 10.0
- opensuse leap: 15.1
- squid-cache squid: ≥ 3.0, ≤ 3.5.28 \| ≥ 4.0, ≤ 4.7 \| ≥ 5.0, ≤ 5.0.1

## References

- <https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt>
- <http://www.openwall.com/lists/oss-security/2020/04/23/1>
- <https://www.debian.org/security/2020/dsa-4682>
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html>
- <https://security.gentoo.org/glsa/202005-05>
- <https://usn.ubuntu.com/4356-1/>
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html>
- <https://security.netapp.com/advisory/ntap-20210205-0006/>
- <https://security.alpinelinux.org/vuln/CVE-2019-12521>
- <https://ubuntu.com/security/CVE-2019-12521>
- <http://www.squid-cache.org/Advisories/SQUID-2019_12.txt>
- <https://ubuntu.com/security/notices/USN-4356-1>
- <https://www.cve.org/CVERecord?id=CVE-2019-12521>
- <https://security-tracker.debian.org/tracker/CVE-2019-12521>

---

Data as of 2026-12-05T05:30:52.711Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
