Medium severity · published Apr 15, 2020
CVE-2019-12521
An issue was discovered in Squid through 4.7
5.9
CVSS
5.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)5.9% · higher than 93% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
9.0; 10.0 · source: NVD
LE
Leap · Opensuse
15.1 · source: NVD
SQ
Squid · Squid-cache
3.0 through 3.5.28; 4.0 through 4.7; 5.0 through 5.0.1 · source: NVD
UL
Ubuntu Linux · Canonical
16.04; 18.04; 19.10; 20.04 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-12521
CVE.org
https://www.cve.org/CVERecord?id=CVE-2019-12521
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html
Mailing List
http://www.openwall.com/lists/oss-security/2020/04/23/1
Third Party Advisory
https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt
Mailing List
https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
Third Party Advisory
https://security.gentoo.org/glsa/202005-05
Third Party Advisory
https://security.netapp.com/advisory/ntap-20210205-0006/
More from Ubuntu Linux
9.8
CVE-2020-11651
SaltStack Salt Authentication Bypass Vulnerability
9.8
CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2019-16928
Exim Out-of-bounds Write Vulnerability
9.8
CVE-2019-10149
Exim Mail Transfer Agent (MTA) Improper Input Validation
