# CVE-2019-12521: An issue was discovered in Squid through 4.7.

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.91%, higher than 93% of CVEs (2026-12-01)
- Published: 2020-04-15T18:47:43.000Z
- Modified: 2026-06-17T02:14:48.837Z
- Weaknesses: CWE-193, CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- squid-cache squid: from 3.0 up to 3.5.28; from 4.0 up to 4.7; from 5.0 up to 5.0.1
- canonical ubuntu_linux: 16.04; 18.04; 19.10; 20.04
- debian debian_linux: 9.0; 10.0
- opensuse leap: 15.1

## Every score

- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt> (third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2020/04/23/1> (mailing-list, patch, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4682> (third-party-advisory, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html> (mailing-list, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202005-05> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4356-1/> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210205-0006/> (third-party-advisory)

## Sources

- CVE List: [CVE-2019-12521](https://www.cve.org/CVERecord?id=CVE-2019-12521), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2019-12521](https://nvd.nist.gov/vuln/detail/CVE-2019-12521), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-12521 · Whole record: https://cve.day/CVE-2019-12521.json · Rebuilt by cve.day 2026-11-25T22:57:49.738Z
