National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2019-12521 Detail

Current 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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 7.5 HIGH
Vector:  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html
http://www.openwall.com/lists/oss-security/2020/04/23/1 Mailing List Third Party Advisory
https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt Third Party Advisory
https://security.gentoo.org/glsa/202005-05
https://usn.ubuntu.com/4356-1/
https://www.debian.org/security/2020/dsa-4682

Weakness Enumeration

CWE-ID CWE Name Source
CWE-787 Out-of-bounds Write NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
3.0
Up to (including)
3.5.28
 cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
4.0
Up to (including)
4.7
 cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
5.0
Up to (including)
5.0.1


Change History

6 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2019-12521
NVD Published Date:
04/15/2020
NVD Last Modified:
05/18/2020