GHSA-q579-9wp9-gfp2

Suggest an improvement
Source
https://github.com/advisories/GHSA-q579-9wp9-gfp2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q579-9wp9-gfp2/GHSA-q579-9wp9-gfp2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q579-9wp9-gfp2
Aliases
Published
2022-06-17T00:14:18Z
Modified
2023-11-08T04:07:22.314410Z
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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-17T00:14:18Z"
}
References

Affected packages

crates.io / rdiff

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.1.2