{"id":"CVE-2021-28030","aliases":["EUVD-2021-1887","GHSA-v7q4-97x4-4qw2","RUSTSEC-2021-0029"],"status":"published","title":"Use of Uninitialized Resource in truetype","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","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.01175,"percentile":0.68004,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-908"],"published":"2021-02-17T12:00:00Z","modified":"2026-06-17T03:45:44Z","fixes":[{"ecosystem":"crates.io","package":"truetype","fixed_in":["0.30.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"truetype","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.30.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"truetype","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.30.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"truetype","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.30.1"}]}]}],"products":[{"vendor":"truetype_project","product":"truetype"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0029.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28030","tags":["advisory"]},{"url":"https://github.com/bodoni/truetype/issues/11","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-v7q4-97x4-4qw2"},{"url":"https://github.com/bodoni/truetype","tags":["package"]},{"url":"https://crates.io/crates/truetype","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-28030","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","status":"published","published":"2021-03-05T08:40:29Z","modified":"2024-08-03T21:33:17.312Z","updated_at":"2026-11-02T14:33:09.175141Z"}],"euvd":[{"id":"EUVD-2021-1887","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","status":"published","published":"2021-03-05T08:40:29Z","modified":"2024-08-03T21:33:17Z","updated_at":"2026-11-03T03:24:47.80549Z"}],"ghsa":[{"id":"GHSA-v7q4-97x4-4qw2","title":" Use of Uninitialized Resource in truetype","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","status":"published","published":"2021-08-25T20:51:58Z","modified":"2023-01-11T05:05:38Z","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:12.361159Z"}],"nvd":[{"id":"CVE-2021-28030","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","status":"published","published":"2021-03-05T09:15:13.973Z","modified":"2026-06-17T03:45:44.82Z","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.399901Z"}],"osv":[{"id":"GHSA-v7q4-97x4-4qw2","title":" Use of Uninitialized Resource in truetype","description":"An issue was discovered in the truetype crate before 0.30.1 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation within Tape::take_bytes.","status":"published","published":"2021-08-25T20:51:58Z","modified":"2023-11-08T04:05:27.666883Z","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:56.981655Z"},{"id":"RUSTSEC-2021-0029","title":"Tape::take_bytes exposes uninitialized memory to a user-provided Read","description":"Affected versions of this crate passed an unininitialized buffer to a\nuser-provided `Read` instance in `Tape::take_bytes`.\n\nThis can result in safe `Read` implementations reading from the uninitialized\nbuffer leading to undefined behavior.\n\nThe flaw was corrected in commit `1f2dc7f37dd` by removing the unsafe block\nand zero-initializing the buffer.","status":"published","published":"2021-02-17T12:00:00Z","modified":"2023-11-08T04:05:27.666883Z","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"}]}}
