GHSA-qwvx-c8j7-5g75

Suggest an improvement
Source
https://github.com/advisories/GHSA-qwvx-c8j7-5g75
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-qwvx-c8j7-5g75/GHSA-qwvx-c8j7-5g75.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qwvx-c8j7-5g75
Aliases
Published
2022-01-06T22:09:19Z
Modified
2023-11-08T04:07:22.808476Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Use of Uninitialized Resource in tectonic_xdv
Details

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.

Database specific
{
    "nvd_published_at": "2021-12-27T00:15:00Z",
    "cwe_ids": [
        "CWE-908"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-05T23:41:34Z"
}
References

Affected packages

crates.io / tectonic_xdv

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.12