Advisory

GHSA-x3f4-45xf-rjm7

Also known as: RUSTSEC-2024-0400

Summary

ruzstd uninit and out-of-bounds memory reads

Details

Affected versions of ruzstd miscalculate the length of the allocated and init section of its internal RingBuffer, leading to uninitialized or out-of-bounds reads in copy_bytes_overshooting of up to 15 bytes.

This may result in up to 15 bytes of memory contents being written into the decoded data when decompressing a crafted archive. This may occur multiple times per archive.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-02 21:34 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

ruzstd

crates.io · All systems

Affected

  • introduced 0.7.0, fixed 0.7.3 (semver)

Fixed versions

0.7.3

Fix

  • Fixed version 0.7.3
    cargo update -p ruzstd --precise 0.7.3

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