PT-2021-24277

CVE-2021-45703

·

Published

2021-02-17

·

Updated

2022-06-17

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: tectonic xdv crate versions prior to 0.1.12
Description: An issue in the tectonic xdv crate allows XdvParser::::process to read from uninitialized memory locations. Affected versions of this crate pass an uninitialized buffer to a user-provided Read implementation. This can lead to memory exposure, as arbitrary Read implementations can read from the uninitialized buffer and return incorrect numbers of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
Recommendations: For versions prior to 0.1.12, update to version 0.1.12 or later, which includes the fix for this issue by zero-initializing the buffer before passing it to a user-provided Read implementation. As a temporary workaround, consider restricting the use of the XdvParser::<T>::process function until a patch is available. Avoid using arbitrary Read implementations with affected versions of the crate to minimize the risk of exploitation.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-6692-8QQF-79JC
GHSA-QWVX-C8J7-5G75
RUSTSEC-2021-0112
Found an issue in the description? Have something to add? Feel free to write us 👾