{"id":"CVE-2021-26951","aliases":["EUVD-2021-1826","GHSA-ppqp-78xx-3r38","RUSTSEC-2021-0015"],"status":"published","title":"Out of bounds write in calamine","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","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-10","score":0.01749,"percentile":0.78035,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787","CWE-908"],"published":"2021-01-06T12:00:00Z","modified":"2026-10-24T10:30:53Z","fixes":[{"ecosystem":"crates.io","package":"calamine","fixed_in":["0.17.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"calamine","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.17.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"calamine","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.17.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"calamine","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.17.0"}]}]}],"products":[{"vendor":"calamine_project","product":"calamine"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0015.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","evidence","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26951","tags":["advisory"]},{"url":"https://github.com/tafia/calamine/issues/199","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-ppqp-78xx-3r38"},{"url":"https://github.com/tafia/calamine","tags":["package"]},{"url":"https://crates.io/crates/calamine","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-26951","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-02-09T22:07:49Z","modified":"2024-08-03T20:33:41.38Z","updated_at":"2026-11-02T14:32:57.033395Z"}],"euvd":[{"id":"EUVD-2021-1826","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-02-09T22:07:49Z","modified":"2024-08-03T20:33:41Z","updated_at":"2026-11-03T03:24:50.383074Z"}],"ghsa":[{"id":"GHSA-ppqp-78xx-3r38","title":"Out of bounds write in calamine","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-08-25T20:53:25Z","modified":"2023-02-03T05:05:57Z","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-787"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2021-26951","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-02-09T23:15:13.663Z","modified":"2026-06-17T03:44:03.79Z","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-787","CWE-908"],"updated_at":"2026-11-02T14:06:50.031227Z"}],"osv":[{"id":"CVE-2021-26951","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-02-09T23:15:13.663Z","modified":"2026-10-24T10:30:53.792365055Z","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:44:18.778776Z"},{"id":"GHSA-ppqp-78xx-3r38","title":"Out of bounds write in calamine","description":"An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.","status":"published","published":"2021-08-25T20:53:25Z","modified":"2023-11-08T04:05:22.828925Z","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-787"],"updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"RUSTSEC-2021-0015","title":"`Sectors::get` accesses unclaimed/uninitialized memory","description":"Affected versions of this crate arbitrarily calls `Vec::set_len` to increase length of a vector without claiming more memory for the vector. Affected versions of this crate\nalso calls user-provided `Read` on the uninitialized memory of the vector that was\nextended with `Vec::set_len`.\n\nThis can overwrite active entities in adjacent heap memory and seems to be a major security issue. Also, calling user-provided `Read` on uninitialized memory is defined as UB in Rust.","status":"published","published":"2021-01-06T12:00:00Z","modified":"2023-11-08T04:05:22.828925Z","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"}]}}
