CVE-2023-40547: Shim: 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.
Security readout for executives and security teams
Plain-English summary
CVE-2023-40547 is a flaw in Shim’s HTTP boot handling. If an attacker can intercept boot traffic or compromise the boot server, they may run code during early boot and potentially bypass Secure Boot protections. This is serious for organizations using network-based HTTP boot, especially on affected Red Hat Enterprise Linux systems.
Executive priority
Treat as high priority for environments using network boot, provisioning networks, or RHEL Secure Boot at scale. Patch during the next urgent maintenance window. Prioritize boot infrastructure and systems that can boot over HTTP, because exploitation depends on controlling or intercepting boot traffic.
Technical view
Shim trusts attacker-controlled values while parsing an HTTP response, causing a CWE-787 out-of-bounds write. Red Hat describes potential remote code execution and complete system compromise during early boot. CVSS is 8.3 with adjacent attack vector, high complexity, no privileges, no user interaction, and scope changed.
Likely exposure
Highest exposure is on affected RHEL systems using Shim with HTTP boot workflows. Exploitation requires early boot timing plus a man-in-the-middle position or compromised boot server. Systems not using HTTP boot are less directly exposed, but affected Shim packages should still be updated per vendor guidance.
Exploitation context
The provided sources do not show CISA KEV listing or confirmed active exploitation. Exploitation is constrained: the attacker must influence HTTP boot responses during early boot, typically through network interception or boot-server compromise. Successful exploitation could undermine boot trust before the operating system loads.
Researcher notes
Key constraints are early-boot reachability and attacker control of HTTP boot responses. Red Hat lists multiple affected RHEL 7, 8, and 9 Shim package builds and related errata. Evidence provided does not establish active exploitation. Avoid assuming impact for unlisted products without vendor confirmation.
Mitigation direction
Apply the relevant Red Hat RHSA updates for affected RHEL versions and streams.
Update affected shim, shim-signed, and shim-unsigned packages where applicable.
Review vendor guidance for non-Red Hat distributions using Shim.
Protect HTTP boot networks from interception and unauthorized server changes.
Audit boot servers for compromise and unauthorized configuration changes.
Validation and detection
Inventory systems using UEFI Secure Boot and Shim.
Identify systems using HTTP boot or network provisioning workflows.
Compare installed Shim package versions against affected versions in vendor advisories.
Confirm applicable RHSA updates are installed successfully.
Review boot infrastructure access controls and change history.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-787: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
5Timeline events
2ADP providers
13Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.