Vulnerabilities in pkg:pypi/uefi-firmware

PACKAGE
Advisory Identifier: GHSA-hm2w-vr2p-hq7w
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/uefi-firmware

2 Known Advisory Record(s)

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

CVE Identifier CVE-2026-54334
GHSA Identifier GHSA-hm2w-vr2p-hq7w
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-787: Out-of-bounds Write
Affected Product Uefi firmware
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

uefi-firmware fixed: Latest secure release
pip install uefi-firmware>=Latest secure release
Verify Direct and Transitive Dependencies

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

`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`. Reachability is through the normal parsing path: `CompressedSection.process()` -> `efi_compressor.TianoDecompress()` -> `TianoDecompress()` -> `DecodeC()` -> `ReadCLen()`. Minimum 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. - PR: <https://github.com/theopolis/uefi-firmware-parser/pull/145> - fix commit: <https://github.com/theopolis/uefi-firmware-parser/commit/bf3dfaa8a05675bae6ea0cbfa082ddcebfcde23e> - upstream related fixes: CVE-2017-5731, CVE-2017-5732, CVE-2017-5733, CVE-2017-5734, CVE-2017-5735

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?
CVE-2026-54334 is a security vulnerability in Uefi firmware involving UEFI Firmware Parser has a heap out-of-bounds write in tiano decompressor ReadCLen under CWE-787: Out-of-bounds Write.
Which Uefi firmware versions are affected?
Affected versions include releases prior to current release patches across affected packages: uefi-firmware.
What version fixes CVE-2026-54334?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is uefi-firmware affected?
Yes, uefi-firmware is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-54334?
CVE-2026-54334 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-54334?
CVE-2026-54334 is classified under CWE-787: Out-of-bounds Write (The product writes data past the end, or before the beginning, of the intended buffer.).
How can I check PyPI dependencies for CVE-2026-54334?
Run the dependency tree command: 'pip show uefi-firmware'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}