CVE-2021-45703 — tectonic_xdv
Fix: tectonic-typesetting/tectonic@cdff034CVE-2021-45703 is a CWE-908 vulnerability in tectonic_xdv. A fix is available for tectonic_xdv — see the affected versions and patch details below.
Duplicate Advisory: `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
tectonic_xdvReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-qwvx-c8j7-5g75. This link is maintained to preserve external references.
Original Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | tectonic_xdv | all versions | 0.1.12cargo update -p tectonic_xdv --precise 0.1.12 |
Affected Products
tectonic xdvtectonic_xdv_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for tectonic_xdv, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update tectonic_xdv to 0.1.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-45703 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2021-45703 in your dependencies?
Find it across crates.io, including transitive dependencies.