Advisory

GHSA-q579-9wp9-gfp2

Also known as: CVE-2021-45694, GHSA-2rxc-8f9w-fjq8, RUSTSEC-2021-0094

Summary

Window can read out of bounds if Read instance returns more bytes than buffer size

Details

rdiff performs a diff of two provided strings or files. As part of its reading code it uses the return value of a Read instance to set the length of its internal character vector.

If the Read implementation claims that it has read more bytes than the length of the provided buffer, the length of the vector will be set to longer than its capacity. This causes rdiff APIs to return uninitialized memory in its API
methods.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-06-17 00:14 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

rdiff

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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