Vulnerabilities in pkg:pypi/uefi-firmware
PACKAGECVE-2026-54334 is a CRITICAL (CVSS 9.8) uefi firmware parser has a vulnerability (CWE-787: Out-of-bounds Write) affecting Uefi firmware libraries in the PyPI ecosystem. The issue involves uefi firmware parser has a heap out-of-bounds write in tiano decompressor readclen. Remediation is available in the latest vendor maintenance releases.
pkg:pypi/uefi-firmware
Vulnerability advisories affecting package pkg:pypi/uefi-firmware. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hm2w-vr2p-hq7w | CVE-2026-54334 | CRITICAL | UEFI Firmware Parser has a heap out-of-bounds write in tiano decompressor ReadCLen |
| GHSA-2689-5p89-6j3j | CVE-2026-54333 | CRITICAL | UEFI Firmware Parser has a stack out-of-bounds write in tiano decompressor MakeTable |
CVE-2026-54334 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-54334
To remediate this vulnerability, upgrade all affected Uefi firmware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install uefi-firmware>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show uefi-firmware
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-54334, inspect your installed packages using pip:
pip show uefi-firmware
Analyze the terminal output to locate any version of Uefi firmware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show uefi-firmware command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Uefi firmware, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54334 Affected Uefi firmware Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uefi-firmware
|
PyPI |
≤ 1.12
|
|
References
Frequently Asked Questions
What is CVE-2026-54334?
Which Uefi firmware versions are affected?
What version fixes CVE-2026-54334?
Is uefi-firmware affected?
What is the CVSS score of CVE-2026-54334?
What CWE is associated with CVE-2026-54334?
How can I check PyPI dependencies for CVE-2026-54334?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hm2w-vr2p-hq7w",
"modified" : "2026-07-08T17:32:55Z",
"published" : "2026-04-16T01:31:09Z",
"aliases" : [ "CVE-2026-54334" ],
"summary" : "UEFI Firmware Parser has a heap out-of-bounds write in tiano decompressor ReadCLen",
"details" : "`uefi-firmware` contains a heap out-of-bounds write vulnerability in the native tiano/EFI decompressor. in `uefi_firmware/compression/Tiano/Decompress.c`, `ReadCLen()` reads `Number = GetBits(Sd, CBIT)` with `CBIT = 9`, so `Number` can be as large as `511`, while the destination array `Sd->mCLen` has `NC = 510` elements. the loop writes while `Index < Number` without enforcing `Index < NC`. additionally, the `CharC == 2` run-length path performs `GetBits(Sd, 9) + 20`, allowing up to `531` zero writes through `Sd->mCLen[Index++] = 0`.\n\nReachability is through the normal parsing path: `CompressedSection.process()` -> `efi_compressor.TianoDecompress()` -> `TianoDecompress()` -> `DecodeC()` -> `ReadCLen()`.\n\nMinimum impact is a deterministic crash; depending on build/runtime details, the heap memory corruption may be exploitable for code execution in the context of the parsing process. this project shipped its own copy of the decompressor without the upstream EDK2 hardening for this bug class.\n\n- PR: <https://github.com/theopolis/uefi-firmware-parser/pull/145>\n- fix commit: <https://github.com/theopolis/uefi-firmware-parser/commit/bf3dfaa8a05675bae6ea0cbfa082ddcebfcde23e>\n- upstream related fixes: CVE-2017-5731, CVE-2017-5732, CVE-2017-5733, CVE-2017-5734, CVE-2017-5735",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "uefi-firmware"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/theopolis/uefi-firmware-parser/security/advisories/GHSA-hm2w-vr2p-hq7w"
}, {
"type" : "WEB",
"url" : "https://github.com/theopolis/uefi-firmware-parser/pull/145"
}, {
"type" : "WEB",
"url" : "https://github.com/theopolis/uefi-firmware-parser/commit/bf3dfaa8a05675bae6ea0cbfa082ddcebfcde23e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/theopolis/uefi-firmware-parser"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T01:31:09Z",
"nvd_published_at" : null
}
}