Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS02NjkyLThxcWYtNzlqY84AArs6

`Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)

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.

Permalink: https://github.com/advisories/GHSA-6692-8qqf-79jc
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02NjkyLThxcWYtNzlqY84AArs6
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 2 years ago
Updated: 10 months ago


Identifiers: GHSA-6692-8qqf-79jc
References: Repository: https://github.com/tectonic-typesetting/tectonic

Affected Packages

cargo:tectonic_xdv
Dependent packages: 2
Dependent repositories: 16
Downloads: 59,812 total
Affected Version Ranges: < 0.1.12
Fixed in: 0.1.12
All affected versions: 0.1.8, 0.1.9, 0.1.10, 0.1.11
All unaffected versions: 0.1.12, 0.2.0, 0.2.1, 0.2.2