Critical EDK II Firmware Flaw Exposes Servers to Pre-Boot Code Execution
Most Servers on the Planet Are Vulnerable to This Firmware Code-Execution Flaw
By Dan Goodin, Ars Technica · Security · Oct. 28, 2026, 4:30 PM
A flaw in firmware that runs before the operating system starts puts a wide range of servers at risk. The bug is rated 9.5 out of 10, and its reach comes from the code’s role as a common foundation for UEFI firmware used by server vendors and data centers. That makes this more significant than a vulnerability in one product: fixes must travel through a sprawling hardware supply chain.

The new vulnerability allows hackers to access servers as they start up. Photo-Illustration: Jobanny Cabrera; Getty Images
The defect is in TianoCore EDK II, an open source project that hardware makers and cloud providers use to build UEFI firmware. UEFI runs during startup, before the operating system can apply its own protections. A UEFI Forum representative described EDK II last year as the “preeminent solution / implementation of the UEFI specifications.” Independent BIOS vendors including AMI, Insyde, and Phoenix rely on its reference code extensively. Microsoft’s hardened EDK2 fork, Project Mu, also used the vulnerable component.
Tracked as CVE-2026-97631, the flaw is a memory corruption bug in an ICMP component. It can let an attacker run code before defenses such as Secure Boot are in place. Secure Boot helps establish a trusted chain for code loaded during startup, including the Trusted Platform Module (TPM). The initial payload doesn’t persist on its own, but it could help an attacker install other code that runs early every time the machine boots.
The disclosure got ahead of itself
Alex Matrosov of Anthropic and Dan Holmes of Google, who found the vulnerability, had planned to keep it confidential until a coordinated disclosure in January. Then AMI, a maker of motherboards and other hardware, published a pull request last month that described the bug and included a fix. After the researchers raised the issue, TianoCore Project members published a public advisory last week.
Once patch code is public, skilled attackers can study the flaw and work out how to exploit it. Getting a UEFI fix onto millions of devices is also slow: thousands of hardware makers and cloud providers are involved. The disclosure followed another botched security announcement by six days, this one concerning a critical code-execution bug in PHP. Defenders have had to respond to another such problem recently, but the firmware issue presents a different challenge: the vulnerable code sits beneath the operating system.
“This vulnerability in the ICMP parser of the EDK2 network stack is interesting in terms of how it affects the chain of trust and the broader ecosystem,” said HD Moore, creator of Metasploit and chief research officer at Dragos. Someone with access to a nearby endpoint or server could seize control of execution while the boot process can still reach sensitive components such as the TPM, he said. That could help an attacker break disk encryption with brief network access; in a theft scenario, Moore said, it would be easier.
The root cause is a 16-year-old buffer overflow in the PXE-Base Code driver, NetworkPkg/UefiPxeBcDxe. The driver lets servers, storage equipment, and other devices start from code downloaded over a local network. During this pre-execution environment boot, it listens for ICMP error messages. It fails to cap a memory copy at 504 bytes, so a malicious insider or someone with low-level access to the local network can send an oversized message and overwrite adjacent data. The result is corruption in the IUEFI module running on the CPU.
The advisory describes the bug this way:
During network boot, the PXE Base Code driver (NetworkPkg/UefiPxeBcDxe) keeps a receive request open for ICMP error messages and copies each received message into the fixed 504-byte field Mode.IcmpError of its private context structure. The copy loop’s bounds handling is incorrect in both the IPv4 and IPv6 handlers (PxeBcIcmpErrorDpcHandle and PxeBcIcmp6ErrorDpcHandle): for a message longer than 504 bytes it still copies bytes into the field, and it advances the destination pointer by the cumulative rather than the per-fragment length, so an oversized message writes attacker-controlled bytes past the field. Nothing earlier on the receive path restricts the message length.
An attacker can send the malicious error as a unicast message to a target device’s IP address from any network distance, provided it arrives during PXE boot. The simplest outcome may be a denial of service that leaves startup hanging. With knowledge of the target firmware build, an attacker can instead plant a “counterfeit event” that runs code on the CPU inside the UEFI environment, at ring 0—the processor’s most privileged level. Because this execution can bypass attestation checks that cryptographically assure remote systems the hardware is secure, the flaw may also help attackers turn limited access into greater control.