CVE-2023-40547
CVE-2023-40547 is a high-severity vulnerability in Redhat Shim with a CVSS 3.x base score of 8.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: High (CVSS 3.x base score 8.3)
- EPSS exploit prediction: 5% (91st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2023-45118
- Weakness: CWE-787
- Affected product: Redhat Shim
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2023-40547?
- 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.
- How severe is CVE-2023-40547?
- CVE-2023-40547 has a CVSS 3.x base score of 8.3, rated high severity. It is exploitable over an adjacent network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-40547 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 5% (91st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-40547?
- CVE-2023-40547 primarily affects Redhat Shim. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2023-40547?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2023-40547 have an EU (EUVD) identifier?
- Yes. CVE-2023-40547 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2023-45118.
- When was CVE-2023-40547 published?
- CVE-2023-40547 was published on 2024-01-25 and last updated on 2026-06-26.
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
- http://www.openwall.com/lists/oss-security/2024/01/26/1
- https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html
Affected products (4)
- cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
More vulnerabilities in Redhat Shim
- CVE-2014-3677 — High (CVSS 7.5): Unspecified vulnerability in Shim might allow attackers to execute arbitrary code via a crafted MOK list, which…
- CVE-2014-3676 — High (CVSS 7.5): Heap-based buffer overflow in Shim allows remote attackers to execute arbitrary code via a crafted IPv6 address,…
- CVE-2023-40548 — High (CVSS 7.4): A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a…
- CVE-2022-28737 — Medium (CVSS 6.5): There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The…
- CVE-2023-40549 — Medium (CVSS 6.2): An out-of-bounds read flaw was found in Shim due to the lack of proper boundary verification during the load of a PE…
- CVE-2023-40546 — Medium (CVSS 6.2): A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new…
All CVEs affecting Redhat Shim →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…