{"id":"CVE-2021-28030","aliases":["CVE-2021-28030","GHSA-v7q4-97x4-4qw2","RUSTSEC-2021-0029"],"related":[],"kind":"vulnerability","state":"published","title":"Use of Uninitialized Resource in truetype","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate truetype versiones anteriores a 0.30.1 para Rust.&#xa0;Los atacantes pueden leer el contenido de ubicaciones de memoria no inicializadas por medio de una operación Read proporcionada por el usuario dentro de la función Tape::take_bytes","source":"nvd"}],"published":"2021-02-17T12:00:00.000Z","modified":"2026-06-17T03:45:44.820Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.30.1"}],"ecosystem":"crates.io","package":"truetype","purl":"pkg:cargo/truetype","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.30.1"}],"ecosystem":"crates.io","package":"truetype","purl":"pkg:cargo/truetype","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.30.1"}],"vendor":"truetype_project","product":"truetype","cpe":"cpe:2.3:a:truetype_project:truetype:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0029.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28030","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bodoni/truetype/issues/11","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/bodoni/truetype","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/truetype","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28030","url":"https://www.cve.org/CVERecord?id=CVE-2021-28030","licence":"CVE Terms of Use","modified":"2024-08-03T21:33:17.312Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v7q4-97x4-4qw2","url":"https://github.com/advisories/GHSA-v7q4-97x4-4qw2","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:27.666Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0029","url":"https://rustsec.org/advisories/RUSTSEC-2021-0029.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:27.666Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28030","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28030","licence":"Public domain","modified":"2026-06-17T03:45:44.820Z"}],"updatedAt":"2026-11-25T22:58:00.153Z","epss":{"score":0.01189,"percentile":0.68808,"date":"2026-12-01T12:00:22.000Z"}}