CVE-2019-12521
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
27- Squid/Squiddescription
- osv-coords25 versionspkg:rpm/almalinux/libecappkg:rpm/almalinux/libecap-develpkg:rpm/opensuse/squid&distro=openSUSE%20Leap%2015.1pkg:rpm/suse/squid3&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/squid3&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/squid&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/squid&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP1pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/squid&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/squid&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/squid&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/squid&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208
< 1.0.1-2.module_el8.6.0+2741+01592ae8+ 24 more
- (no CPE)range: < 1.0.1-2.module_el8.6.0+2741+01592ae8
- (no CPE)range: < 1.0.1-2.module_el8.6.0+2741+01592ae8
- (no CPE)range: < 4.11-lp151.2.15.2
- (no CPE)range: < 3.1.23-8.16.37.12.1
- (no CPE)range: < 3.1.23-8.16.37.12.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 4.11-5.17.2
- (no CPE)range: < 4.11-5.17.2
- (no CPE)range: < 4.11-5.17.2
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 4.11-4.9.1
- (no CPE)range: < 4.11-5.17.2
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 4.11-4.9.1
- (no CPE)range: < 4.11-5.17.2
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
- (no CPE)range: < 3.5.21-26.23.1
Patches
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
8- lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.htmlmitrevendor-advisoryx_refsource_SUSE
- security.gentoo.org/glsa/202005-05mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/4356-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2020/dsa-4682mitrevendor-advisoryx_refsource_DEBIAN
- www.openwall.com/lists/oss-security/2020/04/23/1mitremailing-listx_refsource_MLIST
- gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txtmitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2020/07/msg00009.htmlmitremailing-listx_refsource_MLIST
- security.netapp.com/advisory/ntap-20210205-0006/mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.