CVE-2023-40547Shim: rce in http boot support may lead to secure boot bypass
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | secureboot-db | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | secureboot-db | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | secureboot-db | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | shim | Fixed | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40547 |
| Ubuntu 24.04 | shim-signed | Fixed | 1.58 | UBUNTU-CVE-2023-40547 |
| Ubuntu 22.04 | secureboot-db | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | shim | Fixed | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40547 |
| Ubuntu 22.04 | shim-signed | Fixed | 1.51.4 | UBUNTU-CVE-2023-40547 |
| Ubuntu 20.04 | secureboot-db | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | shim | Fixed | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40547 |
| Ubuntu 20.04 | shim-signed | Fixed | 1.40.10 | UBUNTU-CVE-2023-40547 |
| Ubuntu 18.04 | secureboot-db | Fix pending | ||
| Ubuntu 18.04 | shim | Fix pending | UBUNTU-CVE-2023-40547 | |
| Ubuntu 18.04 | shim-signed | Fix pending | UBUNTU-CVE-2023-40547 | |
| Ubuntu 16.04 | secureboot-db | Fix pending | ||
| Ubuntu 16.04 | shim | Fix pending | UBUNTU-CVE-2023-40547 | |
| Ubuntu 16.04 | shim-signed | Fix pending | UBUNTU-CVE-2023-40547 | |
| Ubuntu 14.04 | secureboot-db | Fix pending | ||
| Ubuntu 14.04 | shim | Fix pending | UBUNTU-CVE-2023-40547 | |
| Ubuntu 14.04 | shim-signed | Fix pending | UBUNTU-CVE-2023-40547 | |
| Debian 14 | shim | Fixed | 15.8-1 | DEBIAN-CVE-2023-40547 |
| Debian 13 | shim | Fixed | 15.8-1 | DEBIAN-CVE-2023-40547 |
| Debian 12 | shim | Fixed | 15.8-1~deb12u1 | DEBIAN-CVE-2023-40547 |
| Red Hat Enterprise Linux 9 | shim | Fixed | 0:15.8-4.el9_3 | RHSA-2024:1903 |
| Red Hat Enterprise Linux 9 | shim-aa64 | Fixed | 0:15.8-4.el9_3 | RHSA-2024:1903 |
| Red Hat Enterprise Linux 9 | shim-x64 | Fixed | 0:15.8-4.el9_3 | RHSA-2024:1903 |
| Red Hat Enterprise Linux 8 | shim | Fixed | 0:15.8-4.el8_9 | RHSA-2024:1902 |
| Red Hat Enterprise Linux 8 | shim-aa64 | Fixed | 0:15.8-4.el8_9 | RHSA-2024:1902 |
| Red Hat Enterprise Linux 8 | shim-ia32 | Fixed | 0:15.8-4.el8_9 | RHSA-2024:1902 |
| Red Hat Enterprise Linux 8 | shim-x64 | Fixed | 0:15.8-4.el8_9 | RHSA-2024:1902 |
| Red Hat Enterprise Linux 7 | mokutil | Fixed | 0:15.8-1.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim | Fixed | 0:15.8-3.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim-ia32 | Fixed | 0:15.8-1.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim-signed | Fixed | 0:15.8-1.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim-unsigned-ia32 | Fixed | 0:15.8-3.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim-unsigned-x64 | Fixed | 0:15.8-3.el7 | RHSA-2024:1959 |
| Red Hat Enterprise Linux 7 | shim-x64 | Fixed | 0:15.8-1.el7 | RHSA-2024:1959 |
| AlmaLinux 9 | shim-aa64 | Fixed | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| AlmaLinux 9 | shim-x64 | Fixed | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| AlmaLinux 8 | shim-aa64 | Fixed | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux 8 | shim-ia32 | Fixed | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux 8 | shim-x64 | Fixed | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| Windows Server 2022 | windows | Fixed | 10.0.20348.3453 KB5055526 | MSRC-2024-Aug |
| Windows Server 2019 | windows | Fixed | 10.0.17763.7136 KB5055519 | MSRC-2024-Aug |
| Windows Server 2016 | windows | Fixed | 10.0.14393.7969 KB5055521 | MSRC-2024-Aug |
| Windows 10 Version 1809 (x64) | windows | Fixed | 10.0.17763.7136 KB5055519 | MSRC-2024-Aug |
| Windows 10 Version 1809 (x86) | windows | Fixed | 10.0.17763.7136 KB5055519 | MSRC-2024-Aug |
| Windows 10 Version 1607 (x64) | windows | Fixed | 10.0.14393.7969 KB5055521 | MSRC-2024-Aug |
| Windows 10 Version 1607 (x86) | windows | Fixed | 10.0.14393.7969 KB5055521 | MSRC-2024-Aug |
| Windows Server, version 23H2 | windows | Fixed | 10.0.25398.1551 KB5055527 | MSRC-2024-Aug |
| Windows 10 Version 21H2 (arm64) | windows | Fixed | 10.0.19044.5737 KB5055518 | MSRC-2024-Aug |
| Windows 10 Version 21H2 (x64) | windows | Fixed | 10.0.19044.5737 KB5055518 | MSRC-2024-Aug |
| Windows 10 Version 21H2 (x86) | windows | Fixed | 10.0.19044.5737 KB5055518 | MSRC-2024-Aug |
| Windows 10 Version 22H2 (arm64) | windows | Fixed | 10.0.19045.5737 KB5055518 | MSRC-2024-Aug |
| Windows 10 Version 22H2 (x64) | windows | Fixed | 10.0.19045.5737 KB5055518 | MSRC-2024-Aug |
| Windows 10 Version 22H2 (x86) | windows | Fixed | 10.0.19045.5737 KB5055518 | MSRC-2024-Aug |
| Windows 11 Version 21H2 (arm64) | windows | Fixed | 10.0.22000.3147 KB5041592 | MSRC-2024-Aug |
| Windows 11 Version 21H2 (x64) | windows | Fixed | 10.0.22000.3147 KB5041592 | MSRC-2024-Aug |
| Windows 11 Version 22H2 (arm64) | windows | Fixed | 10.0.22621.5189 KB5055528 | MSRC-2024-Aug |
| Windows 11 Version 22H2 (x64) | windows | Fixed | 10.0.22621.5189 KB5055528 | MSRC-2024-Aug |
| Windows 11 Version 23H2 (arm64) | windows | Fixed | 10.0.22631.5189 KB5055528 | MSRC-2024-Aug |
| Windows 11 Version 23H2 (x64) | windows | Fixed | 10.0.22631.5189 KB5055528 | MSRC-2024-Aug |
| Windows 11 Version 24H2 (arm64) | windows | Fixed | 10.0.26100.3775 KB5055523 | MSRC-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.
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Extended Update Support
- Red Hat Enterprise Linux 8.8 Extended Update Support
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Extended Update Support
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:
- https://access.redhat.com/errata/RHSA-2024:1834 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1835 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1873 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1876 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1883 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1902 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:1834
- https://access.redhat.com/errata/RHSA-2024:1835
- https://access.redhat.com/errata/RHSA-2024:1873
- https://access.redhat.com/errata/RHSA-2024:1876
- https://access.redhat.com/errata/RHSA-2024:1883
- https://access.redhat.com/errata/RHSA-2024:1902
- https://access.redhat.com/errata/RHSA-2024:1903
- https://access.redhat.com/errata/RHSA-2024:1959
- https://access.redhat.com/errata/RHSA-2024:2086
- https://access.redhat.com/security/cve/CVE-2023-40547
- https://bugzilla.redhat.com/show_bug.cgi?id=2234589
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.