Buffer overflow in Squid-Cache Squid
CVE-2019-12521
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.059, 93.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Squid-Cache Squid
- Canonical Ubuntu Linux — versions 16.04, 18.04, 19.10
- Debian Linux — versions 9.0, 10.0
- openSUSE Leap — versions 15.1
Weakness classification (CWE)
References
- gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt (Third Party Advisory)
- [oss-security] 20200423 [ADVISORY] SQUID-2019:12 Multiple issues in ESI Response processing (mailing-list, Patch, Mailing List, Third Party Advisory)
- DSA-4682 (vendor-advisory, Third Party Advisory)
- openSUSE-SU-2020:0623 (vendor-advisory, Mailing List, Third Party Advisory)
- GLSA-202005-05 (vendor-advisory, Third Party Advisory)
- USN-4356-1 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20200710 [SECURITY] [DLA 2278-1] squid3 security update (mailing-list, Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20210205-0006/ (Third Party Advisory)