Advisory

RUSTSEC-2022-0051

Also known as: GHSA-9q5j-jm53-v7vr

Summary

Memory corruption in liblz4

Details

lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to
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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-08-25 12:00 UTC
Modified
2026-02-04 03:20 UTC

Affected packages and fixes

lz4-sys

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.9.4 (semver)

Fixed versions

1.9.4

Fix

  • Fixed version 1.9.4
    cargo update -p lz4-sys --precise 1.9.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences