Live threats

All CVEs / Squid-cache

CVE-2019-12521Squid-cache Squid

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
—
Auth required
No
Published
Apr 15, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-193, CWE-787
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Squid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
squid-cachesquid≥ 3.0 ≤ 3.5.28
squid-cachesquid≥ 4.0 ≤ 4.7
squid-cachesquid≥ 5.0 ≤ 5.0.1
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux19.10
canonicalubuntu_linux20.04
debiandebian_linux9.0
debiandebian_linux10.0
opensuseleap15.1

Official sources

References

Links published by the sources. Open them with care.