Advisory

GHSA-9q5j-jm53-v7vr

Also known as: RUSTSEC-2022-0051

Summary

lz4-sys vulnerable to memory corruption via issue 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: The source's own band: CRITICAL

Dates

Published
2022-09-01 22:24 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

lz4-sys

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences