{"id":"CVE-2020-36432","aliases":["EUVD-2021-1551","GHSA-3vv3-frrq-6486","RUSTSEC-2020-0033"],"status":"published","title":"Use of Uninitialized Resource in alg_ds","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. There is a drop of uninitialized memory in Matrix::new().","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.0123,"percentile":0.69151,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-665","CWE-908"],"published":"2020-08-25T12:00:00Z","modified":"2026-06-17T03:15:28Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"alg_ds","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.3.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"alg_ds","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.3.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"alg_ds","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"alg_ds_project","product":"alg_ds"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0033.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/alg_ds/RUSTSEC-2020-0033.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36432","tags":["advisory"]},{"url":"https://gitlab.com/dvshapkin/alg-ds/-/issues/1","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-3vv3-frrq-6486"},{"url":"https://gitlab.com/dvshapkin/alg-ds","tags":["package"]},{"url":"https://crates.io/crates/alg_ds","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36432","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. There is a drop of uninitialized memory in Matrix::new().","status":"published","published":"2021-08-08T05:19:47Z","modified":"2024-08-04T17:30:07.259Z","updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2021-1551","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. There is a drop of uninitialized memory in Matrix::new().","status":"published","published":"2021-08-08T05:19:47Z","modified":"2024-08-04T17:30:07Z","updated_at":"2026-11-03T03:07:03.010139Z"}],"ghsa":[{"id":"GHSA-3vv3-frrq-6486","title":"Use of Uninitialized Resource in alg_ds","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. `Matrix::new()` internally calls `Matrix::fill_with()` which uses `*ptr = value` pattern to initialize the buffer. This pattern assumes that there is an initialized struct at the address and drops it, which results in dropping of uninitialized struct.","status":"published","published":"2021-08-25T20:59:20Z","modified":"2023-02-01T05:06:03Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-665","CWE-908"],"updated_at":"2026-11-02T14:36:36.66596Z"}],"nvd":[{"id":"CVE-2020-36432","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. There is a drop of uninitialized memory in Matrix::new().","status":"published","published":"2021-08-08T06:15:06.697Z","modified":"2026-06-17T03:15:28.787Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:06:44.292752Z"}],"osv":[{"id":"GHSA-3vv3-frrq-6486","title":"Use of Uninitialized Resource in alg_ds","description":"An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. `Matrix::new()` internally calls `Matrix::fill_with()` which uses `*ptr = value` pattern to initialize the buffer. This pattern assumes that there is an initialized struct at the address and drops it, which results in dropping of uninitialized struct.","status":"published","published":"2021-08-25T20:59:20Z","modified":"2023-11-08T04:03:44.476394Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-665","CWE-908"],"updated_at":"2026-11-02T15:46:36.092962Z"},{"id":"RUSTSEC-2020-0033","title":"Matrix::new() drops uninitialized memory","description":"`Matrix::new()` internally calls `Matrix::fill_with()` which uses `*ptr = value` pattern to initialize the buffer.\nThis pattern assumes that there is an initialized struct at the address and drops it, which results in dropping of uninitialized struct.","status":"published","published":"2020-08-25T12:00:00Z","modified":"2023-11-08T04:03:44.476394Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
