5.9medium
An issue was discovered in Squid through 4.7.
- Severity
- 5.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 5.91% (higher than 93% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| squid-cache squid | from 3.0 up to 3.5.28, from 4.0 up to 4.7, from 5.0 up to 5.0.1 | NVD |
| canonical ubuntu_linux | 16.04, 18.04, 19.10, 20.04 | NVD |
| debian debian_linux | 9.0, 10.0 | NVD |
| opensuse leap | 15.1 | NVD |
All scores
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Se detectó un problema en Squid versiones hasta 4.7. Cuando Squid analiza ESI, mantiene los elementos de ESI en ESIContext. ESIContext contiene un búfer para contener una pila de ESIElements. Cuando se analiza un nuevo ESIElement, es agregado por medio de la función addStackElement. addStackElement presenta una comprobación para el número de elementos en este búfer, pero está desactivado por 1, conllevando a un Desbordamiento de la Pila de 1 elemento. El desbordamiento se encuentra dentro de la misma estructura, por lo que no puede afectar a los bloques de memoria adyacentes y, por lo tanto, solo conlleva a un bloqueo mientras se procesa.
References
| https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12521.txt | third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2020/04/23/1 | mailing-list, patch, third-party-advisory | |
| https://www.debian.org/security/2020/dsa-4682 | third-party-advisory, vendor-advisory | |
| http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00018.html | mailing-list, third-party-advisory, vendor-advisory | |
| https://security.gentoo.org/glsa/202005-05 | third-party-advisory, vendor-advisory | |
| https://usn.ubuntu.com/4356-1/ | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html | mailing-list, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20210205-0006/ | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-12521 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2019-12521 changed 2026-06-17 | Public domain |