Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2019-12521

squid: Off-by-one error in addStackElement allows for heap buffer overflow and crash

Overview

Published
15 Apr 2020
Modified
17 Jun 2026
Medium CVE
0 Registry packages
6 OS packages
8 Linux distributions
Yes Fix available

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: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-193, CWE-787

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 19 fixes

Oracle Linux 1 release · 2 packages

fixed 2
libecap squid
Oracle Linux fixes for CVE-2019-12521
ReleasePackageFixed in
8 libecap +1 1.0.1-2.module+el8.3.0+7819+eb7d4ef6
8 squid 7:4.11-3.module+el8.3.0+7819+eb7d4ef6

Red Hat 2 releases · 2 packages

wont fix 1 fixed 2
squid libecap
Red Hat fixes for CVE-2019-12521
ReleasePackageFixed inAdvisory
7 squid +2 wont fix —
8 (squid:4) libecap +1 0:1.0.1-2.module+el8.1.0+4044+36416a77 RHSA-2020:4743
8 (squid:4) squid 7:4.11-3.module+el8.3.0+7851+7808b5f9 RHSA-2020:4743

SUSE Linux Enterprise 1 release · 1 package

fixed 1
squid
SUSE Linux Enterprise fixes for CVE-2019-12521
ReleasePackageFixed inAdvisory
12.5 squid 4.11-4.9.1 SUSE-SU-2020:1134-1

alma 1 release · 1 package

fixed 1
libecap
alma fixes for CVE-2019-12521
ReleasePackageFixed in
8 (squid:4) libecap +1 1.0.1-2.module_el8.6.0+2741+01592ae8

debian 6 releases · 2 packages

fixed 6
squid squid3
debian fixes for CVE-2019-12521
ReleasePackageFixed in
10 squid 4.6-1+deb10u2
11 squid 4.11-1
12 squid 4.11-1
13 squid 4.11-1
14 squid 4.11-1
9 squid3 3.5.23-5+deb9u2

echo 1 release · 1 package

fixed 1
squid
echo fixes for CVE-2019-12521
ReleasePackageFixed in
squid 4.11-1

rocky 1 release · 1 package

fixed 1
libecap
rocky fixes for CVE-2019-12521
ReleasePackageFixed in
8 (squid:4) libecap +1 1.0.1-2.module+el8.4.0+404+316a0dc5

ubuntu 4 releases · 2 packages

fixed 4
squid3 squid
ubuntu fixes for CVE-2019-12521
ReleasePackageFixed in
18.04 squid3 3.5.27-1ubuntu1.6
18.04-ESM squid3 3.5.27-1ubuntu1.6
20.04 squid 4.10-1ubuntu1.1
20.04-ESM squid 4.10-1ubuntu1.1

References

Show all 53 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.