Rust advisories / tectonic_xdv
Unsound HighRUSTSEC-2021-0112 · tectonic_xdv
RUSTSEC-2021-0112: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)
Short answertectonic_xdv has an API that can cause undefined behaviour from safe code: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate). Fixed in 0.1.12.
| Crate | tectonic_xdv |
|---|---|
| Type | Unsound (memory-exposure) |
| Affected versions | Before 0.1.12. |
| Fixed in | 0.1.12 |
| Severity | High (GitHub rating) |
| Published | 2021-02-17 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2021-45703, GHSA-6692-8qqf-79jc, GHSA-qwvx-c8j7-5g75 |
What to do
- See which version you have:
cargo tree -i tectonic_xdv(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p tectonic_xdv. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampletectonic_xdv = "0.1.12") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.
Arbitrary 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.
The problem was fixed in commit cdff034 by zero-initializing the buffer before passing it to a user-provided Read implementation.
References
- Package: crates.io/crates/tectonic_xdv
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0112.html
- Report: github.com/tectonic-typesetting/tectonic/issues/752
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?