GHSA-5m39-wx2q-mxg3 – lzf
Package
Manager: cargo
Name: lzf
Vulnerable Version: >=0 <0.3.2
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:R
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
Invalid use of `mem::uninitialized` causes `use-of-uninitialized-value` The compression and decompression function used `mem:uninitialized` to create an array of uninitialized values, to later write values into it. This later leads to reads from uninitialized memory. The flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf by using a heap-allocated `Vec` and removing out use of `mem::uninitialized`. The fix was released in v0.3.2 and v1.0.0 Subsequently, the crate was deprecated and its use is discouraged.
Metadata
Created: 2022-11-08T21:42:06Z
Modified: 2022-11-08T21:56:43Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-5m39-wx2q-mxg3/GHSA-5m39-wx2q-mxg3.json
CWE IDs: []
Alternative ID: N/A
Finding: F138
Auto approve: 1