# CVE-2026-54334: UEFI Firmware Parser: Heap out-of-bounds write in tiano decompressor `ReadCLen`

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `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): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-04-16T01:31:09.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-hm2w-vr2p-hq7w, PYSEC-2026-3394
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

UEFI Firmware Parser parses BIOS, Intel ME, and UEFI firmware structures including volumes, file systems, and files. Prior to 1.14, ReadCLen() in uefi_firmware/compression/Tiano/Decompress.c reads Number from GetBits(Sd, CBIT) with CBIT = 9 and can obtain 511 entries for the 510-element Sd->mCLen heap array because its loop does not enforce Index < NC. The CharC == 2 run-length path can additionally request up to 531 zero writes through Sd->mCLen[Index++] = 0. The normal CompressedSection.process() to efi_compressor.TianoDecompress() to TianoDecompress() to DecodeC() to ReadCLen() parsing path therefore permits crafted Tiano or EFI compressed firmware to corrupt heap memory, deterministically crash the parsing process, and potentially execute code depending on build and runtime details. This issue is fixed in version 1.14.

(As written by CVE List.)

## Affected

- theopolis uefi-firmware-parser: < 1.14
- uefi-firmware (PyPI): up to 1.12

## Every score

- GitHub_M: 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`
- 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/theopolis/uefi-firmware-parser/security/advisories/GHSA-hm2w-vr2p-hq7w> (web)
- <https://github.com/theopolis/uefi-firmware-parser/pull/145> (web)
- <https://github.com/theopolis/uefi-firmware-parser/commit/bf3dfaa8a05675bae6ea0cbfa082ddcebfcde23e> (web)
- <https://github.com/theopolis/uefi-firmware-parser/releases/tag/v1.14>
- <https://github.com/theopolis/uefi-firmware-parser> (package)
- <https://pypi.org/project/uefi-firmware> (package)
- <https://github.com/advisories/GHSA-hm2w-vr2p-hq7w> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54334> (advisory)

## Sources

- CVE List: [CVE-2026-54334](https://www.cve.org/CVERecord?id=CVE-2026-54334), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-hm2w-vr2p-hq7w](https://github.com/advisories/GHSA-hm2w-vr2p-hq7w), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-54334](https://nvd.nist.gov/vuln/detail/CVE-2026-54334), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3394](https://osv.dev/vulnerability/PYSEC-2026-3394), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-54334 · Whole record: https://cve.day/CVE-2026-54334.json · Rebuilt by cve.day 2026-11-25T22:59:38.359Z
