Every CVESearch/Get API key

GHSA-5m39-wx2q-mxg3

Invalid use of `mem::uninitialized` causes `use-of-uninitialized-value`

No scoreFix available

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.

What each source reports

GitHub AdvisoriesNo score

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.

Record
GHSA-5m39-wx2q-mxg3
Updated
2026-11-02
OSVNo score

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.

Record
GHSA-5m39-wx2q-mxg3
Updated
2026-11-02
OSVRUSTSEC-2022-0067No score

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.

Record
RUSTSEC-2022-0067
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
lzf
crates.io
before 0.3.2
0.3.2
lzf
crates.io
0.0.0-0 up to 0.3.2
0.3.2

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GHSA-5m39-wx2q-mxg3 is a vulnerability with no CVSS score yet in lzf, published October 22, 2022. No source lists public exploit code. Fixed in lzf 0.3.2.

References

MoveEnter Open