Skip to main content
Vulnerability Database/CVE-2021-39299

CVE-2021-39299: HP Elite Dragonfly Privilege Escalation

CVE-2021-39299 is a privilege escalation vulnerability in HP Elite Dragonfly UEFI firmware that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Updated:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2021-39299 Overview

CVE-2021-39299 is a high-severity UEFI firmware (BIOS) vulnerability affecting a broad range of HP PC products, including EliteBook, ProBook, ZBook, EliteDesk, ProDesk, EliteOne, and ProOne lines. The flaw allows a local attacker with low privileges to escalate to higher privileges and execute arbitrary code within the firmware context. Because the vulnerability resides below the operating system, successful exploitation can persist across OS reinstalls and evade traditional endpoint defenses. HP published a security advisory and firmware updates to remediate the issue across affected business and workstation systems.

Critical Impact

Local privilege escalation and arbitrary code execution at the UEFI/BIOS layer, enabling attackers to gain persistent, pre-OS control of affected HP systems.

Affected Products

  • HP EliteBook, ProBook, ZBook, and Elite Dragonfly notebook firmware (multiple generations including G5–G8)
  • HP EliteDesk, ProDesk, EliteOne, and ProOne desktop and all-in-one firmware
  • HP Z workstation firmware (Z1, Z4 G4, Z6 G4, Z8 G4) and retail systems (Engage Flex Mini, MP9 G4)

Discovery Timeline

  • 2022-02-16 - CVE-2021-39299 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-39299

Vulnerability Analysis

The vulnerability exists within UEFI firmware shipped on a wide range of HP commercial PCs. HP describes it as a defect that can permit escalation of privilege and arbitrary code execution within the firmware environment. Code that executes at the UEFI layer runs before the operating system loads, with access to System Management Mode (SMM) and the SPI flash. An attacker who reaches this layer can subvert Secure Boot, modify firmware variables, or implant a bootkit that survives reimaging.

The attack vector is local, and exploitation requires the attacker to already possess low-level access on the target host. The scope is changed, meaning a successful exploit crosses a trust boundary from the OS into the firmware. Confidentiality, integrity, and availability are all impacted at the highest level.

Root Cause

HP's advisory categorizes the issue as a generic UEFI firmware flaw and the National Vulnerability Database lists the weakness as NVD-CWE-noinfo. Public technical details on the specific defect class are not disclosed in the advisory beyond the privilege escalation and code execution outcome. The flaw is addressed through BIOS updates distributed per product family.

Attack Vector

An attacker first obtains local code execution on the affected HP system, typically as a standard or low-privileged user, then leverages the firmware defect to elevate into a higher firmware privilege context. From there, the attacker can write to firmware regions, install persistent implants, or disable platform security features. The vulnerability is not exploitable remotely over a network and requires no user interaction once local access is established.

Detailed exploitation code has not been publicly released. See the HP Security Document for vendor guidance.

Detection Methods for CVE-2021-39299

Indicators of Compromise

  • Unexpected modifications to UEFI variables, boot order entries, or SPI flash contents on affected HP hardware.
  • Secure Boot status transitioning from enabled to disabled without an authorized administrator change.
  • Firmware version strings that do not match the HP-published fixed BIOS revision for the specific model.

Detection Strategies

  • Inventory installed BIOS versions across the fleet and compare against HP's fixed-version table in the advisory.
  • Use platform integrity tooling such as CHIPSEC to validate SPI flash protections, SMM configuration, and Secure Boot state on HP endpoints.
  • Monitor Windows Event Log and Linux kernel logs for efivars write activity or firmware update events occurring outside change windows.

Monitoring Recommendations

  • Centralize BIOS version telemetry from endpoint management tools (e.g., Microsoft Intune, SCCM, HP Manageability Integration Kit) into the SIEM.
  • Alert on local privilege escalation patterns and unsigned driver loads that often precede firmware-level attacks.
  • Track administrative actions involving firmware update utilities such as HPBIOSUPDREC and HpqPswd.

How to Mitigate CVE-2021-39299

Immediate Actions Required

  • Identify all HP systems in scope using the affected-products list and prioritize patching of business notebooks, workstations, and shared retail systems.
  • Apply the latest HP BIOS update for each affected model as published in the HP advisory.
  • Enforce BIOS administrator passwords and enable BIOS write protections to limit unauthorized firmware modification.

Patch Information

HP has released BIOS updates for each affected platform. Refer to the HP Security Document for the minimum fixed BIOS version per model and download the corresponding SoftPaq from HP Support.

Workarounds

  • Restrict local administrative access and limit users who can execute firmware update or low-level platform utilities.
  • Ensure Secure Boot, HP Sure Start, and TPM measurements are enabled to detect unauthorized firmware changes.
  • Where patching cannot be performed immediately, physically secure devices and disable external boot media to reduce the local attack surface.
bash
# Verify current BIOS version on Windows and Linux endpoints
# Windows (PowerShell)
Get-CimInstance -ClassName Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion, ReleaseDate

# Linux
sudo dmidecode -s bios-version
sudo dmidecode -s bios-release-date

# Compare output against HP's fixed BIOS version listed in advisory ish_5661066-5661090-16

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.