{"id":"CVE-2021-45703","aliases":["EUVD-2022-0679","GHSA-6692-8qqf-79jc","GHSA-qwvx-c8j7-5g75","RUSTSEC-2021-0112"],"status":"published","title":"Duplicate Advisory: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)","description":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::\u003cT\u003e::process may read from uninitialized memory locations.","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-12","score":0.0123,"percentile":0.69356,"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-17T04:13:58Z","fixes":[{"ecosystem":"crates.io","package":"tectonic_xdv","fixed_in":["0.1.12"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"tectonic_xdv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.12"}]}]},{"source":"osv","ecosystem":"crates.io","package":"tectonic_xdv","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.12"}]}]},{"source":"osv","ecosystem":"crates.io","package":"tectonic_xdv","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.12"}]}]}],"products":[{"vendor":"tectonic_xdv_project","product":"tectonic_xdv"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0112.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tectonic_xdv/RUSTSEC-2021-0112.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/tectonic-typesetting/tectonic/issues/752","tags":["web","report"]},{"url":"https://github.com/tectonic-typesetting/tectonic/commit/cdff034e6d93cdfdafd13d8c6956e22fa5a57b79","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6692-8qqf-79jc"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45703","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-qwvx-c8j7-5g75"},{"url":"https://github.com/tectonic-typesetting/tectonic","tags":["package","web"]},{"url":"https://crates.io/crates/tectonic_xdv","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-45703","description":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::\u003cT\u003e::process may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:48:44Z","modified":"2024-08-04T04:47:01.995Z","updated_at":"2026-11-02T14:33:02.930115Z"}],"euvd":[{"id":"EUVD-2022-0679","description":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::\u003cT\u003e::process may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:48:44Z","modified":"2024-08-04T04:47:01Z","updated_at":"2026-11-03T03:08:25.77408Z"}],"ghsa":[{"id":"GHSA-qwvx-c8j7-5g75","title":"Use of Uninitialized Resource in tectonic_xdv","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. 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.","status":"published","published":"2022-01-06T22:09:19Z","modified":"2023-06-13T22:01:49Z","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-908"],"updated_at":"2026-11-02T14:36:54.225318Z"},{"id":"GHSA-6692-8qqf-79jc","title":"Duplicate Advisory: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)","description":"## 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.","status":"withdrawn","published":"2022-06-17T00:24:29Z","modified":"2026-02-03T19:37:22Z","updated_at":"2026-11-02T14:39:21.558748Z"}],"nvd":[{"id":"CVE-2021-45703","description":"An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::\u003cT\u003e::process may read from uninitialized memory locations.","status":"published","published":"2021-12-27T00:15:09.777Z","modified":"2026-06-17T04:13:58.857Z","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-908"],"updated_at":"2026-11-02T14:07:02.977492Z"}],"osv":[{"id":"GHSA-qwvx-c8j7-5g75","title":"Use of Uninitialized Resource in tectonic_xdv","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. 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.","status":"published","published":"2022-01-06T22:09:19Z","modified":"2023-11-08T04:07:22.808476Z","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-908"],"updated_at":"2026-11-02T15:46:55.122811Z"},{"id":"GHSA-6692-8qqf-79jc","title":"Duplicate Advisory: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)","description":"## 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.","status":"withdrawn","published":"2022-06-17T00:24:29Z","modified":"2026-02-03T19:50:02.811967Z","updated_at":"2026-11-02T15:46:39.266402Z"},{"id":"RUSTSEC-2021-0112","title":"`Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)","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. 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.","status":"published","published":"2021-02-17T12:00:00Z","modified":"2023-11-08T04:07:22.808476Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
