{"id":"CVE-2021-45694","aliases":["CVE-2021-45694","GHSA-2rxc-8f9w-fjq8","GHSA-q579-9wp9-gfp2","RUSTSEC-2021-0094"],"related":[],"kind":"vulnerability","state":"published","title":"Window may read from uninitialized memory locations in rdiff","summary":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.","format":"markdown","source":"ghsa"},{"lang":"en","text":"`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.\n\nIf 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\nmethods.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado un problema en la crate rdiff versiones hasta 03-02-2021 para Rust. Window puede leer desde ubicaciones de memoria no inicializadas","source":"nvd"}],"published":"2021-02-03T12:00:00.000Z","modified":"2026-06-17T04:13:57.750Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.2"}],"ecosystem":"crates.io","package":"rdiff","purl":"pkg:cargo/rdiff","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.2"}],"ecosystem":"crates.io","package":"rdiff","purl":"pkg:cargo/rdiff","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"rdiff","purl":"pkg:cargo/rdiff","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"0.1.2"}],"vendor":"rdiff_project","product":"rdiff","cpe":"cpe:2.3:a:rdiff_project:rdiff:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0094.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rdiff/RUSTSEC-2021-0094.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45694","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dyule/rdiff/issues/3","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/dyule/rdiff","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/rdiff","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45694","url":"https://www.cve.org/CVERecord?id=CVE-2021-45694","licence":"CVE Terms of Use","modified":"2024-08-04T04:47:01.985Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2rxc-8f9w-fjq8","url":"https://github.com/advisories/GHSA-2rxc-8f9w-fjq8","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:22.314Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q579-9wp9-gfp2","url":"https://github.com/advisories/GHSA-q579-9wp9-gfp2","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:22.314Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0094","url":"https://rustsec.org/advisories/RUSTSEC-2021-0094.html","licence":"CC0-1.0","modified":"2023-11-08T04:07:22.314Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45694","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45694","licence":"Public domain","modified":"2026-06-17T04:13:57.750Z"}],"updatedAt":"2026-11-25T22:58:06.265Z","epss":{"score":0.01095,"percentile":0.66449,"date":"2026-12-01T12:00:22.000Z"}}