RUSTSEC-2021-0094

Source
https://rustsec.org/advisories/RUSTSEC-2021-0094
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0094.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0094
Aliases
Published
2021-02-03T12:00:00Z
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
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / rdiff

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

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

Database specific

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