{"id":"CVE-2021-45694","aliases":["EUVD-2022-0427","GHSA-2rxc-8f9w-fjq8","GHSA-q579-9wp9-gfp2","RUSTSEC-2021-0094"],"status":"published","title":"Window may read from uninitialized memory locations in rdiff","description":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01095,"percentile":0.65991,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-908"],"published":"2021-02-03T12:00:00Z","modified":"2026-06-17T04:13:57Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"rdiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.2"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"rdiff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"rdiff","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.1.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"rdiff","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.1.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"rdiff","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"rdiff_project","product":"rdiff"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0094.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rdiff/RUSTSEC-2021-0094.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45694","tags":["advisory"]},{"url":"https://github.com/dyule/rdiff/issues/3","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-2rxc-8f9w-fjq8"},{"url":"https://github.com/advisories/GHSA-q579-9wp9-gfp2"},{"url":"https://github.com/dyule/rdiff","tags":["package"]},{"url":"https://crates.io/crates/rdiff","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-45694","description":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:50:29Z","modified":"2024-08-04T04:47:01.985Z","updated_at":"2026-11-02T14:33:02.580561Z"}],"euvd":[{"id":"EUVD-2022-0427","description":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:50:29Z","modified":"2024-08-04T04:47:01Z","updated_at":"2026-11-03T03:08:26.364792Z"}],"ghsa":[{"id":"GHSA-2rxc-8f9w-fjq8","title":"Window may read from uninitialized memory locations in rdiff","description":"An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.","status":"published","published":"2022-01-06T22:14:13Z","modified":"2023-06-13T20:24:32Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:36:54.225318Z"},{"id":"GHSA-q579-9wp9-gfp2","title":"Window can read out of bounds if Read instance returns more bytes than buffer size","description":"`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.\n","status":"published","published":"2022-06-17T00:14:18Z","modified":"2023-06-13T20:10:25Z","updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2021-45694","description":"An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.","status":"published","published":"2021-12-27T00:15:09.42Z","modified":"2026-06-17T04:13:57.75Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:07:02.977492Z"}],"osv":[{"id":"GHSA-2rxc-8f9w-fjq8","title":"Window may read from uninitialized memory locations in rdiff","description":"An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.","status":"published","published":"2022-01-06T22:14:13Z","modified":"2023-11-08T04:07:22.31441Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"GHSA-q579-9wp9-gfp2","title":"Window can read out of bounds if Read instance returns more bytes than buffer size","description":"`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.\n","status":"published","published":"2022-06-17T00:14:18Z","modified":"2023-11-08T04:07:22.31441Z","updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"RUSTSEC-2021-0094","title":"Window can read out of bounds if Read instance returns more bytes than buffer size","description":"`rdiff` performs a diff of two provided strings or files. As part of its reading\ncode it uses the return value of a `Read` instance to set the length of\nits internal character vector.\n\nIf the `Read` implementation claims that it has read more bytes than the length\nof the provided buffer, the length of the vector will be set to longer than its\ncapacity. This causes `rdiff` APIs to return uninitialized memory in its API\nmethods.","status":"published","published":"2021-02-03T12:00:00Z","modified":"2023-11-08T04:07:22.31441Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
