CVE-2019-12521
Reported by mitre · Published April 15, 2020
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| squid3 | Ubuntu:16.04:LTS | 3.5.12-1ubuntu7.11 |
| squid | squid-cache | 5.0.1, 4.7, 3.5.28 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| amazon:2 | squid-migration-script | 0 |
| arch | squid | 0 |
| amazon:2 | squid | 0 |
| alpine | squid | 0 |
| amazon:2 | squid-sysvinit | 0 |
Timeline
- Apr 15, 2020 CVE Published
- Apr 16, 2020 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-12521
vulnetix vdb fixes CVE-2019-12521
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-12521/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [oss-security] 20200423 [ADVISORY] SQUID-2019:12 Multiple issues in ESI Response processing mailing-listx_refsource_MLIST
- DSA-4682 vendor-advisoryx_refsource_DEBIAN
- openSUSE-SU-2020:0623 vendor-advisoryx_refsource_SUSE
- GLSA-202005-05 vendor-advisoryx_refsource_GENTOO
- USN-4356-1 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20200710 [SECURITY] [DLA 2278-1] squid3 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM