RUSTSEC-2024-0400

Source
https://rustsec.org/advisories/RUSTSEC-2024-0400
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0400.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0400
Published
2024-11-28T12:00:00Z
Modified
2024-11-28T18:48:40Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / ruzstd

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.7.0
Fixed
0.7.3

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "memory-exposure"
    ]
}