# GHSA-9q5j-jm53-v7vr: lz4-sys vulnerable to memory corruption via issue in liblz4

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-08-25T12:00:00.000Z
- Modified: 2026-02-04T03:20:40.494Z
- Also known as: RUSTSEC-2022-0051
- Related: CVE-2021-3520
- Weaknesses: CWE-190, CWE-787

## 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.

(As written by GitHub Advisory Database.)

## Affected

- lz4-sys (crates.io): before 1.9.4; from 0.0.0-0 before 1.9.4

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/lz4/lz4/pull/972> (web)
- <https://rustsec.org/advisories/RUSTSEC-2022-0051.html> (advisory, web)
- <https://crates.io/crates/lz4-sys> (package)

## Sources

- GitHub Advisory Database: [GHSA-9q5j-jm53-v7vr](https://github.com/advisories/GHSA-9q5j-jm53-v7vr), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0051](https://rustsec.org/advisories/RUSTSEC-2022-0051.html), CC0-1.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-9q5j-jm53-v7vr · Whole record: https://cve.day/GHSA-9q5j-jm53-v7vr.json · Rebuilt by cve.day 2026-11-25T22:56:43.108Z
