CVE-2021-3520

CRITICAL9.8EPSS 0.14%

Memory corruption in liblz4

Published: 8/25/2022Modified: 2/4/2026
Also known as:GHSA-9q5j-jm53-v7vrDSA-4919-1ALPINE-CVE-2021-3520DEBIAN-CVE-2021-3520RUSTSEC-2022-0051

Description

lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to [CVE-2021-3520](https://nvd.nist.gov/vuln/detail/CVE-2021-3520). Attackers could craft a payload that triggers an integer overflow upon decompression, causing an out-of-bounds write. The flaw has been corrected in version v1.9.4 of liblz4, which is included in lz4-sys 1.9.4.

Affected packages (5)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1CRITICAL9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References (5)