{"id":"CVE-2021-45703","aliases":["CVE-2021-45703","GHSA-6692-8qqf-79jc","GHSA-qwvx-c8j7-5g75","RUSTSEC-2021-0112"],"related":[],"kind":"vulnerability","state":"published","title":"Use of Uninitialized Resource in tectonic_xdv","summary":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::<T>::process may read from uninitialized memory locations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::<T>::process may read from uninitialized memory locations.","source":"cvelist"},{"lang":"en","text":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-qwvx-c8j7-5g75. This link is maintained to preserve external references.\n\n## Original Description\nAffected 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. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe problem was fixed in commit `cdff034` by zero-initializing the buffer before passing it to a user-provided `Read` implementation.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe problem was fixed in commit `cdff034` by zero-initializing the buffer before passing it to a user-provided Read implementation.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n\nThe problem was fixed in commit `cdff034` by zero-initializing the buffer before passing it to a user-provided `Read` implementation.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate tectonic_xdv versiones anteriores a 0.1.12 para Rust. La función XdvParser::(T)::process puede leer desde ubicaciones de memoria no inicializadas","source":"nvd"}],"published":"2021-02-17T12:00:00.000Z","modified":"2026-06-17T04:13:58.857Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.12"}],"ecosystem":"crates.io","package":"tectonic_xdv","purl":"pkg:cargo/tectonic_xdv","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.12"}],"ecosystem":"crates.io","package":"tectonic_xdv","purl":"pkg:cargo/tectonic_xdv","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.1.12"}],"ecosystem":"crates.io","package":"tectonic_xdv","purl":"pkg:cargo/tectonic_xdv","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.1.12"}],"vendor":"tectonic_xdv_project","product":"tectonic_xdv","cpe":"cpe:2.3:a:tectonic_xdv_project:tectonic_xdv:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0112.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tectonic_xdv/RUSTSEC-2021-0112.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tectonic-typesetting/tectonic/issues/752","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/tectonic-typesetting/tectonic/commit/cdff034e6d93cdfdafd13d8c6956e22fa5a57b79","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tectonic-typesetting/tectonic","tags":["package","web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45703","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/tectonic_xdv","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45703","url":"https://www.cve.org/CVERecord?id=CVE-2021-45703","licence":"CVE Terms of Use","modified":"2024-08-04T04:47:01.995Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6692-8qqf-79jc","url":"https://github.com/advisories/GHSA-6692-8qqf-79jc","licence":"CC-BY-4.0","modified":"2026-02-03T19:50:02.811Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qwvx-c8j7-5g75","url":"https://github.com/advisories/GHSA-qwvx-c8j7-5g75","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:22.808Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0112","url":"https://rustsec.org/advisories/RUSTSEC-2021-0112.html","licence":"CC0-1.0","modified":"2023-11-08T04:07:22.808Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45703","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45703","licence":"Public domain","modified":"2026-06-17T04:13:58.857Z"}],"updatedAt":"2026-11-25T22:58:06.269Z","epss":{"score":0.0123,"percentile":0.68933,"date":"2026-11-30T12:00:22.000Z"}}