CVEfocus › CVE database › CVE-2023-40547

CVE-2023-40547Shim: rce in http boot support may lead to secure boot bypass

CVSS 8.3 HighEPSS 0.9% (higher than 58% of CVEs)Published 2024-01-25Updated 2026-06-26Assigner: redhat

A remote code execution vulnerability was found in Shim. The Shim boot support trusts attacker-controlled values when parsing an HTTP response. This flaw allows an attacker to craft a specific malicious HTTP request, leading to a completely controlled out-of-bounds write primitive and complete system compromise. This flaw is only exploitable during the early boot phase, an attacker needs to perform a Man-in-the-Middle or compromise the boot server to be able to exploit this vulnerability successfully.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Debian, Microsoft, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

49Fixed
9Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 25.10secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40547
Ubuntu 24.04shim-signedFixed1.58UBUNTU-CVE-2023-40547
Ubuntu 22.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 22.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40547
Ubuntu 22.04shim-signedFixed1.51.4UBUNTU-CVE-2023-40547
Ubuntu 20.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 20.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40547
Ubuntu 20.04shim-signedFixed1.40.10UBUNTU-CVE-2023-40547
Ubuntu 18.04secureboot-dbFix pending
Ubuntu 18.04shimFix pendingUBUNTU-CVE-2023-40547
Ubuntu 18.04shim-signedFix pendingUBUNTU-CVE-2023-40547
Ubuntu 16.04secureboot-dbFix pending
Ubuntu 16.04shimFix pendingUBUNTU-CVE-2023-40547
Ubuntu 16.04shim-signedFix pendingUBUNTU-CVE-2023-40547
Ubuntu 14.04secureboot-dbFix pending
Ubuntu 14.04shimFix pendingUBUNTU-CVE-2023-40547
Ubuntu 14.04shim-signedFix pendingUBUNTU-CVE-2023-40547
Debian 14shimFixed15.8-1DEBIAN-CVE-2023-40547
Debian 13shimFixed15.8-1DEBIAN-CVE-2023-40547
Debian 12shimFixed15.8-1~deb12u1DEBIAN-CVE-2023-40547
Red Hat Enterprise Linux 9shimFixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-aa64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-x64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 8shimFixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-aa64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-ia32Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-x64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 7mokutilFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shimFixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-ia32Fixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-signedFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-ia32Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-x64Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-x64Fixed0:15.8-1.el7RHSA-2024:1959
AlmaLinux 9shim-aa64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 9shim-x64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 8shim-aa64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-ia32Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-x64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
Windows Server 2022windowsFixed10.0.20348.3453 KB5055526MSRC-2024-Aug
Windows Server 2019windowsFixed10.0.17763.7136 KB5055519MSRC-2024-Aug
Windows Server 2016windowsFixed10.0.14393.7969 KB5055521MSRC-2024-Aug
Windows 10 Version 1809 (x64)windowsFixed10.0.17763.7136 KB5055519MSRC-2024-Aug
Windows 10 Version 1809 (x86)windowsFixed10.0.17763.7136 KB5055519MSRC-2024-Aug
Windows 10 Version 1607 (x64)windowsFixed10.0.14393.7969 KB5055521MSRC-2024-Aug
Windows 10 Version 1607 (x86)windowsFixed10.0.14393.7969 KB5055521MSRC-2024-Aug
Windows Server, version 23H2windowsFixed10.0.25398.1551 KB5055527MSRC-2024-Aug
Windows 10 Version 21H2 (arm64)windowsFixed10.0.19044.5737 KB5055518MSRC-2024-Aug
Windows 10 Version 21H2 (x64)windowsFixed10.0.19044.5737 KB5055518MSRC-2024-Aug
Windows 10 Version 21H2 (x86)windowsFixed10.0.19044.5737 KB5055518MSRC-2024-Aug
Windows 10 Version 22H2 (arm64)windowsFixed10.0.19045.5737 KB5055518MSRC-2024-Aug
Windows 10 Version 22H2 (x64)windowsFixed10.0.19045.5737 KB5055518MSRC-2024-Aug
Windows 10 Version 22H2 (x86)windowsFixed10.0.19045.5737 KB5055518MSRC-2024-Aug
Windows 11 Version 21H2 (arm64)windowsFixed10.0.22000.3147 KB5041592MSRC-2024-Aug
Windows 11 Version 21H2 (x64)windowsFixed10.0.22000.3147 KB5041592MSRC-2024-Aug
Windows 11 Version 22H2 (arm64)windowsFixed10.0.22621.5189 KB5055528MSRC-2024-Aug
Windows 11 Version 22H2 (x64)windowsFixed10.0.22621.5189 KB5055528MSRC-2024-Aug
Windows 11 Version 23H2 (arm64)windowsFixed10.0.22631.5189 KB5055528MSRC-2024-Aug
Windows 11 Version 23H2 (x64)windowsFixed10.0.22631.5189 KB5055528MSRC-2024-Aug
Windows 11 Version 24H2 (arm64)windowsFixed10.0.26100.3775 KB5055523MSRC-2024-Aug

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: If a system isn’t required to boot from the network, configure the server’s boot order to disable entirely or skip the network boot.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.