# CVE-2021-45689: Reading on uninitialized buffer may cause UB ( `gfx_auxil::read_spirv()` )

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-11-30)
- Published: 2021-01-07T12:00:00.000Z
- Modified: 2026-06-17T04:13:57.173Z
- Also known as: GHSA-28p5-7rg4-8v99, GHSA-ff2r-xpwq-6whj, RUSTSEC-2021-0091
- Weaknesses: CWE-908
- Assigned by: mitre

## Description

An issue was discovered in the gfx-auxil crate through 2021-01-07 for Rust. gfx_auxil::read_spirv may read from uninitialized memory locations.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gfx-auxil (crates.io): up to 0.10.0; from 0.0.0-0
- gfx-auxil_project gfx-auxil: up to 0.10.0

## Every score

- GitHub: rating High
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0091.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/gfx-auxil/RUSTSEC-2021-0091.md> (third-party-advisory, web)
- <https://github.com/gfx-rs/gfx/issues/3567> (report, web)
- <https://github.com/gfx-rs/gfx> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45689> (advisory)
- <https://crates.io/crates/gfx-auxil> (package)

## Sources

- CVE List: [CVE-2021-45689](https://www.cve.org/CVERecord?id=CVE-2021-45689), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-28p5-7rg4-8v99](https://github.com/advisories/GHSA-28p5-7rg4-8v99), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-ff2r-xpwq-6whj](https://github.com/advisories/GHSA-ff2r-xpwq-6whj), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0091](https://rustsec.org/advisories/RUSTSEC-2021-0091.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45689](https://nvd.nist.gov/vuln/detail/CVE-2021-45689), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45689 · Whole record: https://cve.day/CVE-2021-45689.json · Rebuilt by cve.day 2026-11-25T22:58:06.263Z
