{"id":"GHSA-9q5j-jm53-v7vr","aliases":["RUSTSEC-2022-0051"],"status":"published","title":"lz4-sys vulnerable to memory corruption via issue in liblz4","description":"lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to\n[CVE-2021-3520](https://nvd.nist.gov/vuln/detail/CVE-2021-3520).\n\nAttackers could craft a payload that triggers an integer overflow upon\ndecompression, causing an out-of-bounds write.\n\nThe flaw has been corrected in version v1.9.4 of liblz4, which is included\nin lz4-sys 1.9.4.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190","CWE-787"],"published":"2022-08-25T12:00:00Z","modified":"2026-02-04T03:20:40Z","fixes":[{"ecosystem":"crates.io","package":"lz4-sys","fixed_in":["1.9.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"lz4-sys","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"lz4-sys","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"lz4-sys","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.9.4"}]}]}],"references":[{"url":"https://github.com/lz4/lz4/pull/972","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0051.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-9q5j-jm53-v7vr"},{"url":"https://crates.io/crates/lz4-sys","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-9q5j-jm53-v7vr","title":"lz4-sys vulnerable to memory corruption via issue in liblz4","description":"lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to\n[CVE-2021-3520](https://nvd.nist.gov/vuln/detail/CVE-2021-3520).\n\nAttackers could craft a payload that triggers an integer overflow upon\ndecompression, causing an out-of-bounds write.\n\nThe flaw has been corrected in version v1.9.4 of liblz4, which is included\nin lz4-sys 1.9.4.\n","status":"published","published":"2022-09-01T22:24:55Z","modified":"2023-01-07T05:01:13Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T14:36:01.39976Z"}],"osv":[{"id":"GHSA-9q5j-jm53-v7vr","title":"lz4-sys vulnerable to memory corruption via issue in liblz4","description":"lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to\n[CVE-2021-3520](https://nvd.nist.gov/vuln/detail/CVE-2021-3520).\n\nAttackers could craft a payload that triggers an integer overflow upon\ndecompression, causing an out-of-bounds write.\n\nThe flaw has been corrected in version v1.9.4 of liblz4, which is included\nin lz4-sys 1.9.4.\n","status":"published","published":"2022-09-01T22:24:55Z","modified":"2023-11-08T04:18:03.475448Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T15:46:44.225359Z"},{"id":"RUSTSEC-2022-0051","title":"Memory corruption in liblz4","description":"lz4-sys up to v1.9.3 bundles a version of liblz4 that is vulnerable to\n[CVE-2021-3520](https://nvd.nist.gov/vuln/detail/CVE-2021-3520).\n\nAttackers could craft a payload that triggers an integer overflow upon\ndecompression, causing an out-of-bounds write.\n\nThe flaw has been corrected in version v1.9.4 of liblz4, which is included\nin lz4-sys 1.9.4.","status":"published","published":"2022-08-25T12:00:00Z","modified":"2026-02-04T03:20:40.494417Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.971022Z"}]}}
