CVE-2021-3520
Reported by redhat · Published June 2, 2021
There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| lz4 | lz4_project | 1.9.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | lz4 | lz4-1.8.3 |
| ConanCenter | lz4 | 1.8.3 |
| n/a | lz4 | 1.8.3 |
| amazon:2023 | lz4-libs | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | lz4-static | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| arch | lz4 | 0 |
| alpine | lz4 | 0, 0 |
| amazon:2023 | lz4 | 0 |
| amazon:2023 | lz4-devel | 0 |
Timeline
- Apr 30, 2021 CVE Published
- Jun 3, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Dec 16, 2025 PoC Published
- Mar 7, 2026 Distribution Patch (22 in total, the first dated here)
- Mar 7, 2026 Security Advisory (28 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3520
vulnetix vdb fixes CVE-2021-3520
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-2021-3520/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-3520 advisory
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url