Skip to main content

uefi-firmware-parser EUVDEUVD-2026-78065

| CVE-2026-54334 CRITICAL
Out-of-bounds Write (CWE-787)
2026-09-14 GitHub_M GHSA-hm2w-vr2p-hq7w PYSEC-2026-3394
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted firmware image to analyst/pipeline
  2. Delivery
    Parser reaches CompressedSection.process
  3. Exploit
    GetBits(Sd,9) yields count > NC in ReadCLen
  4. Execution
    Out-of-bounds writes into Sd->mCLen corrupt heap
  5. Impact
    Deterministic crash or potential code execution in parser context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to parse an attacker-supplied firmware image containing a maliciously crafted Tiano-compressed or EFI-compressed section, and requires the vulnerable code path to run - i.e., uefi-firmware-parser < 1.14 with its native efi_compressor/Tiano decompressor invoked via CompressedSection.process(). The specific trigger is a compressed section whose ReadCLen() bit stream yields Number > 510 (up to 511) or a CharC == 2 run-length of up to 531. Limiting factors: the parser must actually reach the compressed-section decompression path (a section must be present and processed), the attacker cannot exploit anything unless someone feeds the file to the tool (user interaction / supply-chain delivery of the sample), and reliable code execution beyond a deterministic crash is build- and runtime-dependent rather than guaranteed.

Impact

The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H = 9.8) overstates real-world exposure for a file-parsing library: the vulnerability is not a listening network service but is triggered only when the parser is fed attacker-controlled firmware, which in most deployments is a local or supply-chain action rather than direct remote unauthenticated access, so a more honest read is AV:L or AV:N with UI:R and a lower complexity of successful RCE. The confirmed, deterministic impact is a crash (availability), while code execution is described as merely 'potentially' possible and the out-of-bounds writes are constrained (largely zero writes), which argues against uniform C:H/I:H. There is no CISA KEV listing, no public POC, and no EPSS value supplied, so this reads as a real-but-not-yet-exploited hardening issue rather than an urgent internet-facing emergency - though because firmware-analysis pipelines routinely ingest untrusted images, even a mid-sized municipal IT team in legnica running automated firmware triage should treat unpatched use as urgent and upgrade promptly. The dominant realistic outcome today is denial of service of the analysis process, with RCE as a build-dependent upper bound.

Exploit ScenarioDerived

An analyst or automated malware/firmware triage pipeline ingests a UEFI image submitted by an external party; the image contains a crafted Tiano/EFI compressed section whose Huffman code-length stream encodes an oversized Number/run-length. When uefi-firmware-parser expands the section (CompressedSection.process → TianoDecompress → DecodeC → ReadCLen), the out-of-bounds writes corrupt the heap, deterministically crashing the parser and, depending on build and heap layout, potentially executing attacker code in the analysis context. No public exploit is currently known, so the near-term practical result is denial of service of the parsing job.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 15, 2026

Heap out-of-bounds write in the theopolis uefi-firmware-parser Python package (versions prior to 1.14) lets a crafted Tiano/EFI-compressed firmware image corrupt heap memory when the file is parsed. The bundled native Tiano decompressor's ReadCLen() in Decompress.c reads a 9-bit length (up to 511, plus a run-length path allowing up to 531 writes) into the 510-element Sd->mCLen array without an Index < NC bound, producing a deterministic crash and potential code execution in the parsing process. No public exploit identified at time of analysis; the flaw is reached through the normal CompressedSection.process() parsing path, so any tool or service that ingests untrusted firmware with this library is at risk.

RemediationAI

Vendor-released patch: upgrade to uefi-firmware-parser 1.14 or later (pip install -U uefi-firmware), which replaces the forked decompressor with the upstream EDK2 implementation carrying the CVE-2017-5731..5735 bounds fixes; see the fix commit https://github.com/theopolis/uefi-firmware-parser/commit/bf3dfaa8a05675bae6ea0cbfa082ddcebfcde23e, PR https://github.com/theopolis/uefi-firmware-parser/pull/145, and release https://github.com/theopolis/uefi-firmware-parser/releases/tag/v1.14. If immediate upgrade is not possible, treat all firmware inputs as untrusted and process them only from images of known provenance, and run the parser inside a sandbox or isolated/low-privilege container so a heap corruption crash or potential code execution cannot pivot into the host - the trade-off being added pipeline complexity and latency. Where feasible, avoid or gate the Tiano/EFI compressed-section decompression path on unvetted samples until patched; the side effect is that legitimately compressed sections will fail to expand, reducing parser coverage.

Affected VersionsENISA

uefi-firmware-parser < 1.14

Affected Packages

pypi uefi-firmware no fix
euvd uefi_firmware_parser fix: 1.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is a C-language port of Intel's EDK2 Tiano/EFI decompressor (Decompress.c) that theopolis/uefi-firmware-parser ships as a native extension (efi_compressor) and invokes from Python when expanding CompressedSection firmware sections. The root cause is CWE-787 (out-of-bounds write): ReadCLen() obtains Number = GetBits(Sd, CBIT) with CBIT = 9, so Number can reach 511, but the destination Huffman code-length array Sd->mCLen holds only NC = 510 entries, and the write loop terminates on Index < Number rather than Index < NC. The CharC == 2 run-length branch compounds this by computing GetBits(Sd, 9) + 20, permitting up to 531 sequential zero writes via Sd->mCLen[Index++] = 0. This project forked the decompressor without the upstream EDK2 hardening that fixed the analogous 2017 bugs (CVE-2017-5731 through CVE-2017-5735), so the same missing-bounds class re-appeared. The only affected CPE is cpe:2.3:a:theopolis:uefi-firmware-parser:*:*:*:*:*:*:*:* (pip package uefi-firmware).

Know when Uefi Firmware Parser gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.6 MEDIUM

A file-parsing library exploited only when a victim feeds it a crafted image, so AV:L/UI:R; confirmed impact is a deterministic crash (A:H) with limited, mostly-zero OOB writes making C/I only Low.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 14, 2026 - 22:19 EUVD
CVE Published
Sep 14, 2026 - 20:06 cve.org
CRITICAL 9.8

DescriptionCVE.org

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.

Technical POC Analysis

Bug class: CWE-787 Out-of-bounds Write.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The uefi-firmware-parser Python package (versions prior to 1.14) contains a heap out-of-bounds write vulnerability that enables arbitrary code execution during firmware image parsing. Organizations using this package for firmware analysis, validation, or tool integration face direct risk of code execution at a foundational trust boundary-potentially enabling persistent pre-OS compromise. Immediate patching is required to eliminate this critical vulnerability in the firmware analysis supply chain.

Business Impact: Severe
Compensating Controls

Apply vendor patch: upgrade uefi-firmware-parser to version 1.14 or later. If immediate patching is not feasible, restrict firmware sources to verified, cryptographically signed images and disable untrusted firmware processing until updated.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Low
niche Python firmware-analysis library used mainly by security researchers
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy