CVE-2019-12521
publishedsquid: Off-by-one error in addStackElement allows for heap buffer overflow and crash
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2509 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2SQUID4-2023-008 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | libecap | Advisory build | 1.0.1-2.module_el8.6.0+2741+01592ae8 | ALSA-2020:4743 |
| Alpine Linux | v3.10 | squid | Fixed | 4.11-r0 | Package fix record |
| Debian | buster | squid | Advisory build | 4.6-1+deb10u2 | DSA-4682-1 |
| Oracle Linux | 8 | libecapaarch64 · squid · 4b | Advisory build | 0:1.0.1-2.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecapaarch64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-11-SP3 | squid3i586 | Advisory build | 3.1.23-8.16.37.12.1 | SUSE-SU-2020:14460-1 |
| Ubuntu | bionic | squid | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Amazon Linux | AL2 | squidaarch64 | Listed in advisory | Not stated | ALAS2-2024-2509 |
| Rocky Linux | 8 | libecapaarch64 | Listed in advisory | Not stated | RLSA-2020:4743 |
| AlmaLinux | 8 | libecap-devel | Advisory build | 1.0.1-2.module_el8.6.0+2741+01592ae8 | ALSA-2020:4743 |
| Alpine Linux | v3.11 | squid | Fixed | 4.11-r0 | Package fix record |
| Alpine Linux | v3.9 | squid | Fixed | 4.11-r0 | Package fix record |
| Debian | stretch | squid3 | Advisory build | 3.5.23-5+deb9u2 | DLA-2278-1 |
| Oracle Linux | 8 | libecapx86_64 · squid · 4b | Advisory build | 0:1.0.1-2.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Oracle Linux | 8 | libecap-develaarch64 · squid · 4b | Advisory build | 0:1.0.1-2.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Oracle Linux | 8 | libecap-develx86_64 · squid · 4b | Advisory build | 0:1.0.1-2.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Oracle Linux | 8 | squidaarch64 · squid · 4b | Advisory build | 7:4.11-3.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Oracle Linux | 8 | squidx86_64 · squid · 4b | Advisory build | 7:4.11-3.module+el8.3.0+7819+eb7d4ef6 | ELSA-2020-4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecapppc64le | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecaps390x | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecapsrc | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecapx86_64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debuginfoaarch64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debuginfoppc64le | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debuginfos390x | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debuginfox86_64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debugsourceaarch64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debugsourceppc64le | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debugsources390x | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-debugsourcex86_64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-develaarch64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-develppc64le | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-devels390x | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | libecap-develx86_64 | Advisory build | 1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squidaarch64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squidppc64le | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squids390x | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squidsrc | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squidx86_64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debuginfoaarch64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debuginfoppc64le | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debuginfos390x | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debuginfox86_64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debugsourceaarch64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debugsourceppc64le | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debugsources390x | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| Red Hat Enterprise Linux | RHEL-8 | squid-debugsourcex86_64 | Advisory build | 7:4.11-3.module+el8.3.0+7851+7808b5f9 | RHSA-2020:4743 |
| SUSE / openSUSE | SLE-11-SP4 | squid3i586 | Advisory build | 3.1.23-8.16.37.12.1 | SUSE-SU-2020:14460-1 |
| SUSE / openSUSE | SLE-11-SP4 | squid3ppc64 | Advisory build | 3.1.23-8.16.37.12.1 | SUSE-SU-2020:14460-1 |
| SUSE / openSUSE | SLE-11-SP4 | squid3s390x | Advisory build | 3.1.23-8.16.37.12.1 | SUSE-SU-2020:14460-1 |
| SUSE / openSUSE | SLE-11-SP4 | squid3x86_64 | Advisory build | 3.1.23-8.16.37.12.1 | SUSE-SU-2020:14460-1 |
| SUSE / openSUSE | SLE-12-SP2 | squidppc64le | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP2 | squids390x | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP2 | squidx86_64 | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP3 | squidaarch64 | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP3 | squidppc64le | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP3 | squids390x | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP3 | squidx86_64 | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP4 | squidaarch64 | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP4 | squidppc64le | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP4 | squids390x | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP4 | squidx86_64 | Advisory build | 3.5.21-26.23.1 | SUSE-SU-2020:1227-1 |
| SUSE / openSUSE | SLE-12-SP5 | squidaarch64 | Advisory build | 4.11-4.9.1 | SUSE-SU-2020:1134-1 |
| SUSE / openSUSE | SLE-12-SP5 | squidppc64le | Advisory build | 4.11-4.9.1 | SUSE-SU-2020:1134-1 |
| SUSE / openSUSE | SLE-12-SP5 | squids390x | Advisory build | 4.11-4.9.1 | SUSE-SU-2020:1134-1 |
| SUSE / openSUSE | SLE-12-SP5 | squidx86_64 | Advisory build | 4.11-4.9.1 | SUSE-SU-2020:1134-1 |
| SUSE / openSUSE | SLE-15 | squidaarch64 | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15 | squidppc64le | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15 | squids390x | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15 | squidx86_64 | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15-SP1 | squidaarch64 | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15-SP1 | squidppc64le | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15-SP1 | squids390x | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | SLE-15-SP1 | squidx86_64 | Advisory build | 4.11-5.17.2 | SUSE-SU-2020:1156-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | squidx86_64 | Advisory build | 4.11-lp151.2.15.2 | OPENSUSE-SU-2020:0623-1 |
| Ubuntu | bionic | squid-cgi | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Ubuntu | bionic | squid-common | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Ubuntu | bionic | squid-purge | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Ubuntu | bionic | squid3 | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Ubuntu | bionic | squidclient | Advisory build | 3.5.27-1ubuntu1.6 | USN-4356-1 |
| Ubuntu | focal | squid | Advisory build | 4.10-1ubuntu1.1 | USN-4356-1 |
| Ubuntu | focal | squid-cgi | Advisory build | 4.10-1ubuntu1.1 | USN-4356-1 |
| Ubuntu | focal | squid-common | Advisory build | 4.10-1ubuntu1.1 | USN-4356-1 |
| Ubuntu | focal | squid-purge | Advisory build | 4.10-1ubuntu1.1 | USN-4356-1 |
| Ubuntu | focal | squidclient | Advisory build | 4.10-1ubuntu1.1 | USN-4356-1 |
| Ubuntu | xenial | squid | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Ubuntu | xenial | squid-cgi | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Ubuntu | xenial | squid-common | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Ubuntu | xenial | squid-purge | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Ubuntu | xenial | squid3 | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Ubuntu | xenial | squidclient | Advisory build | 3.5.12-1ubuntu7.11 | USN-4356-1 |
| Amazon Linux | AL2 | squidaarch64 | Listed in advisory | Not stated | ALAS2SQUID4-2023-008 |
| Amazon Linux | AL2 | squidi686 | Listed in advisory | Not stated | ALAS2-2024-2509 |
| Amazon Linux | AL2 | squidsrc | Listed in advisory | Not stated | ALAS2-2024-2509 |
| Amazon Linux | AL2 | squidsrc | Listed in advisory | Not stated | ALAS2SQUID4-2023-008 |
| Amazon Linux | AL2 | squidx86_64 | Listed in advisory | Not stated | ALAS2-2024-2509 |
| Amazon Linux | AL2 | squidx86_64 | Listed in advisory | Not stated | ALAS2SQUID4-2023-008 |
| Rocky Linux | 8 | libecapsrc | Listed in advisory | Not stated | RLSA-2020:4743 |
| Rocky Linux | 8 | libecapx86_64 | Listed in advisory | Not stated | RLSA-2020:4743 |
| Rocky Linux | 8 | libecap-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2020:4743 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
8- openSUSE-SU-2020:0623 http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html
- [oss-security] 20200423 [ADVISORY] SQUID-2019:12 Multiple issues in ESI Response processing http://www.openwall.com/lists/oss-security/2020/04/23/1
- https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt
- [debian-lts-announce] 20200710 [SECURITY] [DLA 2278-1] squid3 security update https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
- GLSA-202005-05 https://security.gentoo.org/glsa/202005-05
- https://security.netapp.com/advisory/ntap-20210205-0006/
- USN-4356-1 https://usn.ubuntu.com/4356-1/
- DSA-4682 https://www.debian.org/security/2020/dsa-4682
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5cb50b1dfed47665c50f4e73b3ee3729e8345b1251fd64a75ded6767d00031a9
- Ingested
- 23 Sep 2026, 07:45:46 UTC
- Source record
- Official CVE record