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