CVE-2019-12521
squid: Off-by-one error in addStackElement allows for heap buffer overflow and crash
Overview
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
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | squid | 4.11-4.9.1 | SUSE-SU-2020:1134-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 (squid:4) | libecap +1 | 1.0.1-2.module_el8.6.0+2741+01592ae8 |
debian 6 releases · 2 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| squid | 4.11-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 (squid:4) | libecap +1 | 1.0.1-2.module+el8.4.0+404+316a0dc5 |
ubuntu 4 releases · 2 packages
| Release | Package | Fixed 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
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html
- www.openwall.com http://www.openwall.com/lists/oss-security/2020/04/23/1
- www.squid-cache.org http://www.squid-cache.org/Advisories/SQUID-2019_12.txt
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-12521
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1730523
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1730528
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770349
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770356
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770360
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770365
Show all 53 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770371
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1770375
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1798534
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1798540
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1798552
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1817121
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1827558
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1827562
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1827570
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1852550
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1852554
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1871705
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12520
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12521
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12523
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12524
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12526
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12528
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12529
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12854
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18676
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18677
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18678
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18679
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18860
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14058
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15049
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-24606
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8449
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8450
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2020-4743.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2020:4743
- gitlab.com https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt
- linux.oracle.com https://linux.oracle.com/cve/CVE-2019-12521.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2020-4743.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-12521
- security.gentoo.org https://security.gentoo.org/glsa/202005-05
- security.netapp.com https://security.netapp.com/advisory/ntap-20210205-0006/
- ubuntu.com https://ubuntu.com/security/notices/USN-4356-1
- usn.ubuntu.com https://usn.ubuntu.com/4356-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-12521
- www.debian.org https://www.debian.org/security/2020/dsa-4682
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.