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

Published Aug 24, 2023
·
Updated

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.

Other sources

Redhat: CVE-2023-40547 Shim - RCE in HTTP boot support may lead to secure boot bypass

— Microsoft

rhboot shim could allow a remote attacker to execute arbitrary code on the system, caused by a out-of-bounds write flaw in the http boot support (httpboot.c). By sending a specially crafted HTTP request, an attacker could exploit this vulnerability to execute arbitrary code on the system.

— IBM

The MSRC Vulnerability & Mitigations (V&M) team discovered a critical Remote Code Execution vulnerability in the latest version of the Linux shim (https://github.com/rhboot/shim). The shim's http boot support (httpboot.c) trusts attacker-controlled values when parsing an HTTP response, leading to a completely controlled out-of-bounds write primitive.

— Red Hat

Affected Software

53 affected componentsFixes available
Red Hat Shim=15.8
Microsoft Windows 11=21H2
Microsoft Windows 11=21H2
Microsoft Windows 10=1809
Microsoft Windows 11=24H2
Microsoft Windows 11=23H2
Microsoft Windows Server 2012
Microsoft Windows 10=22H2
Microsoft Windows 11=22H2
Microsoft Windows 10=1607
Microsoft Windows 11=22H2
Microsoft Windows Server 2019
Microsoft Windows Server 2012
Microsoft Windows Server 2012 R2
Microsoft Windows Server 2022
Microsoft Windows 10
Microsoft Windows 10
Microsoft Windows Server 2016
Microsoft Windows Server 2019
Microsoft Windows Server 2022, 23H2 Edition
Microsoft Windows 10=1809
Microsoft Windows Server 2012 R2
Microsoft Windows 10=21H2
Microsoft Windows 10=21H2
Microsoft Windows 10=1809
Microsoft Windows 11=24H2
Microsoft Windows Server 2022
Microsoft Windows 10=22H2
Microsoft Windows 11=23H2
Microsoft Windows Server 2016
Microsoft Windows 10=22H2
Microsoft Windows 10=1607
Microsoft Windows 10=21H2
IBM R10.0<=10.1.3.0 10.0.245.0
IBM R9.4<=89.42.18.0 89.41.25.0 89.40.83.0
IBM R9.3<=89.33.52.0 89.33.45.0
redhat/shim<15.8
15.8
redhat Shim<15.8
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
ubuntu/shim*
ubuntu/shim-signed*
ubuntu/shim*
ubuntu/shim-signed*
ubuntu/shim*
ubuntu/shim-signed*
ubuntu/shim<15.8-0ubuntu1
15.8-0ubuntu1
ubuntu/shim-signed<1.40.10
1.40.10
ubuntu/shim<15.8-0ubuntu1
15.8-0ubuntu1
ubuntu/shim-signed<1.51.4
1.51.4
ubuntu/shim<15.8-0ubuntu1
15.8-0ubuntu1
ubuntu/shim-signed<1.58
1.58

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 15.8
  2. Upgrade

    Upgrade ubuntu/shim to a version that resolves this vulnerability.

    Fixed in 15.8-0ubuntu1
  3. Upgrade

    Upgrade ubuntu/shim-signed to a version that resolves this vulnerability.

    Fixed in 1.40.10
  4. Upgrade

    Upgrade ubuntu/shim-signed to a version that resolves this vulnerability.

    Fixed in 1.51.4
  5. Upgrade

    Upgrade ubuntu/shim-signed to a version that resolves this vulnerability.

    Fixed in 1.58

Event History

Aug 24, 2023
Data Sourced
via Red Hat·07:13 PM
DescriptionSeverityAffected Software
Jan 23, 2024
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Jan 25, 2024
CVE Published
via MITRE·03:54 PM
Data Sourced
via MITRE·03:54 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
DescriptionSeverity
Feb 2, 2024
Data Sourced
via NVD·04:53 PM
RemedyWeaknessAffected Software
Updated
via NVD·04:53 PM
Severity
Event
via MITRE·05:12 PM
Feb 7, 2024
News Published
via BleepingComputer·03:55 PM
Updated
via NVD·05:15 PM
DescriptionAffected Software
Feb 8, 2024
Updated
via NVD·05:15 PM
WeaknessAffected Software
Updated
via NVD·07:25 PM
SeverityWeaknessAffected Software
Feb 9, 2024
Data Sourced
via MITRE·02:54 AM
Weakness
Updated
via MITRE·02:54 AM
Description
News Published
via ZDNet·09:06 PM
Feb 19, 2024
Updated
via MITRE·10:50 AM
Weakness
Updated
via NVD·11:15 AM
WeaknessAffected Software
Mar 26, 2024
Updated
via MITRE·03:58 PM
Weakness
Updated
via NVD·04:15 PM
WeaknessAffected Software
Apr 16, 2024
Updated
via NVD·04:15 PM
Affected Software
Apr 18, 2024
Updated
via NVD·04:15 AM
Affected Software
Apr 25, 2024
Updated
via NVD·02:15 PM
Affected Software
Apr 29, 2024
Updated
via NVD·02:15 PM
Affected Software
Apr 30, 2024
Updated
via NVD·12:15 PM
WeaknessAffected Software
May 1, 2024
Updated
via MITRE·08:20 PM
Weakness
Jun 10, 2024
Updated
via NVD·06:15 PM
Affected Software
Aug 13, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Sep 16, 2024
Updated
via NVD·07:16 PM
Affected Software
Mar 25, 2025
Updated
via Red Hat·12:59 AM
Description
May 27, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jun 26, 2026
Updated
via NVD·10:16 AM
Affected Software
Nov 17, 2026
Data Sourced
via OSV·07:01 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-40547?

CVE-2023-40547 is classified as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2023-40547?

To fix CVE-2023-40547, apply the appropriate security patches provided by your vendor.

3

What products are affected by CVE-2023-40547?

CVE-2023-40547 affects various versions of Red Hat Shim and multiple Windows operating systems.

4

What are the consequences of exploiting CVE-2023-40547?

Exploiting CVE-2023-40547 can lead to complete control of the affected system through out-of-bounds writes.

5

Is CVE-2023-40547 under active exploitation?

There have been reports indicating that CVE-2023-40547 may be actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203