{"id":"CVE-2021-26952","aliases":["EUVD-2021-1656","GHSA-9f5r-vqm5-m342","RUSTSEC-2021-0016"],"status":"published","title":"Use of Uninitialized Resource in ms3d","description":"An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.","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-10","score":0.01576,"percentile":0.75669,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-908"],"published":"2021-01-26T12:00:00Z","modified":"2026-10-24T10:30:57Z","fixes":[{"ecosystem":"crates.io","package":"ms3d","fixed_in":["0.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"ms3d","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"ms3d","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"ms3d","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.3"}]}]}],"products":[{"vendor":"ms3d_project","product":"ms3d"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0016.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","evidence","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26952","tags":["advisory"]},{"url":"https://github.com/andrewhickman/ms3d/issues/1","tags":["web","report"]},{"url":"https://github.com/andrewhickman/ms3d/commit/599313b","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9f5r-vqm5-m342"},{"url":"https://github.com/andrewhickman/ms3d","tags":["package"]},{"url":"https://crates.io/crates/ms3d","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-26952","description":"An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.","status":"published","published":"2021-02-09T22:07:42Z","modified":"2024-08-03T20:33:41.463Z","updated_at":"2026-11-02T14:32:57.368269Z"}],"euvd":[{"id":"EUVD-2021-1656","description":"An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.","status":"published","published":"2021-02-09T22:07:42Z","modified":"2024-08-03T20:33:41Z","updated_at":"2026-11-03T03:24:50.84326Z"}],"ghsa":[{"id":"GHSA-9f5r-vqm5-m342","title":"Use of Uninitialized Resource in ms3d","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe flaw was fixed in commit `599313b` by zero-initializing the buffer (via self.buf.resize(len, 0)) before passing it to Read.","status":"published","published":"2021-08-25T20:53:16Z","modified":"2023-06-13T20:06:14Z","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:53.654352Z"}],"nvd":[{"id":"CVE-2021-26952","description":"An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.","status":"published","published":"2021-02-09T23:15:13.727Z","modified":"2026-06-17T03:44:03.917Z","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:06:50.031227Z"}],"osv":[{"id":"CVE-2021-26952","description":"An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.","status":"published","published":"2021-02-09T23:15:13.727Z","modified":"2026-10-24T10:30:57.434308392Z","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"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-9f5r-vqm5-m342","title":"Use of Uninitialized Resource in ms3d","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe flaw was fixed in commit `599313b` by zero-initializing the buffer (via self.buf.resize(len, 0)) before passing it to Read.","status":"published","published":"2021-08-25T20:53:16Z","modified":"2023-11-08T04:05:22.896074Z","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:43.524801Z"},{"id":"RUSTSEC-2021-0016","title":"`IoReader::read()`: user-provided `Read` on uninitialized buffer may cause UB","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation.\n\nArbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.\nReading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe flaw was fixed in commit 599313b by zero-initializing the buffer (via `self.buf.resize(len, 0)`) before passing it to `Read`.","status":"published","published":"2021-01-26T12:00:00Z","modified":"2023-11-08T04:05:22.896074Z","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"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
