cve.bz

CVE-2023-40547 redhat: Out-of-bounds Write

8.3 highEPSS 5.4%Fix available

High (8.3) in redhat. EPSS 5.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.3 high
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
5.4% (unchanged from 5.4% a week ago; 5.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-02-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-346 Origin Validation Error
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 7: fixed in 0:15.8-3.el7
  • Red Hat Red Hat Enterprise Linux 7: fixed in 0:15.8-1.el7
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:15.8-4.el8_9
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:15.8-2.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:15.8-2.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions: fixed in 0:15.8-2.el8_2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:15.8-2.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service: fixed in 0:15.8-2.el8_4
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Azure Linux, Alpaquita: fixed package versions per release
  • Vendor advisory: https://access.redhat.com/security/cve/CVE-2023-40547
  • Vendor advisory: https://bugzilla.redhat.com/show_bug.cgi?id=2234589

Ask an AI about this CVE

Show the promptExplain CVE-2023-40547 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40547?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40547?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40547 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 70:15.8-3.el7
Red Hat Enterprise Linux 70:15.8-1.el7
Red Hat Enterprise Linux 80:15.8-4.el8_9
Red Hat Enterprise Linux 8.2 Advanced Update Support0:15.8-2.el8_2
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:15.8-2.el8_2
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions0:15.8-2.el8_2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:15.8-2.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:15.8-2.el8_4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:15.8-2.el8_4
Red Hat Enterprise Linux 8.6 Extended Update Support0:15.8-2.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support0:15.8-2.el8
Red Hat Enterprise Linux 90:15.8-4.el9_3
Red Hat Enterprise Linux 9.0 Extended Update Support0:15.8-3.el9
Red Hat Enterprise Linux 9.0 Extended Update Support0:15.8-2.el9
Red Hat Enterprise Linux 9.2 Extended Update Support0:15.8-3.el9_2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10shim15.8-1~deb10u1DLA-3813-1
Debian12shim15.8-1~deb12u1DEBIAN-CVE-2023-40547
Debian13, 14shim15.8-1DEBIAN-CVE-2023-40547
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTSshim, shim-signedno fix listedUBUNTU-CVE-2023-40547
Ubuntu20.04:LTSshim-signed1.40.10UBUNTU-CVE-2023-40547
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTSshim15.8-0ubuntu1UBUNTU-CVE-2023-40547
Ubuntu22.04:LTSshim-signed1.51.4UBUNTU-CVE-2023-40547
Ubuntu24.04:LTSshim-signed1.58UBUNTU-CVE-2023-40547
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationmokutil, shim-x64, shim-ia32 and 2 more0:15.8-1.el7RHSA-2024:1959
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationshim, shim-unsigned-x64, shim-unsigned-ia320:15.8-3.el7RHSA-2024:1959
Red Hatenterprise_linux:8::baseosshim, shim-x64, shim-aa64 and 1 more0:15.8-4.el8_9RHSA-2024:1902
Red Hatenterprise_linux:9::baseosshim, shim-x64, shim-aa640:15.8-4.el9_3RHSA-2024:1903
Red Hatrhel_aus:8.2::baseos, rhel_e4s:8.2::baseos, rhel_tus:8.2::baseosshim, shim-x64, shim-ia320:15.8-2.el8_2RHSA-2024:1834
Red Hatrhel_aus:8.4::baseos, rhel_e4s:8.4::baseos, rhel_tus:8.4::baseosshim, shim-x64, shim-ia320:15.8-2.el8_4RHSA-2024:1873
Red Hatrhel_eus:8.6::baseosshim, shim-x64, shim-aa64 and 1 more0:15.8-2.el8_6RHSA-2024:2086
Red Hatrhel_eus:8.8::baseosshim, shim-x64, shim-aa64 and 1 more0:15.8-2.el8RHSA-2024:1883
Red Hatrhel_eus:8.8::crbshim-unsigned-x640:15.8-2.el8RHSA-2024:1883
Red Hatrhel_eus:9.0::appstreamshim-unsigned-aarch640:15.8-2.el9RHSA-2024:1835
Red Hatrhel_eus:9.0::baseosshim, shim-x64, shim-aa640:15.8-3.el9RHSA-2024:1835
Red Hatrhel_eus:9.0::crbshim-unsigned-x640:15.8-2.el9RHSA-2024:1835
1 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 13 moreshim15.8-150300.4.20.2SUSE-SU-2024:1368-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2shim15.8-150100.3.38.1SUSE-SU-2024:1461-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5shim15.8-25.30.1SUSE-SU-2024:1462-1
SUSELinux Micro 6.0pcr-oracle0.4.6-2.1SUSE-SU-2025:20136-1
SUSELinux Micro 6.0shim15.8-1.1SUSE-SU-2025:20136-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4shim15.8-150300.4.20.2SUSE-SU-2024:1368-1
AlmaLinux8shim-x64, shim-aa64, shim-ia3215.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux9shim-x64, shim-aa6415.8-4.el9_3.alma.1ALSA-2024:1903
Azure Linux2shim15.8-1AZL-34030
Azure Linux2shim-unsigned-x6415.8-1AZL-33895
Azure Linux3shim15.8-3AZL-35254
Azure Linux3shim-unsigned-aarch6415.8-3AZL-35267
Azure Linux3shim-unsigned-x6415.8-3AZL-35278
Alpaquita23, streamshim15.8-r0BELL-CVE-2023-40547
Alpaquita23, streamshim-signedno fix listedBELL-CVE-2023-40547

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is only exploitable when the machine is booting UEFI through the network. During startup, before loading a local boot image, Shim checks whether the system is configured to support network booting. If the check succeeds, Shim attempts to load the bootable image from the boot's previously configured server using the HTTP protocol, which exposes the system to the vulnerability described by this CVE.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7shim-0:15.8-3.el7Fixed 2024-04-23RHSA-2024:1959
Red Hat Enterprise Linux 7shim-signed-0:15.8-1.el7Fixed 2024-04-23RHSA-2024:1959
Red Hat Enterprise Linux 8shim-0:15.8-4.el8_9Fixed 2024-04-18RHSA-2024:1902
Red Hat Enterprise Linux 8.2 Advanced Update Supportshim-0:15.8-2.el8_2Fixed 2024-04-16RHSA-2024:1834
Red Hat Enterprise Linux 8.2 Telecommunications Update Serviceshim-0:15.8-2.el8_2Fixed 2024-04-16RHSA-2024:1834
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsshim-0:15.8-2.el8_2Fixed 2024-04-16RHSA-2024:1834
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportshim-0:15.8-2.el8_4Fixed 2024-04-18RHSA-2024:1873
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceshim-0:15.8-2.el8_4Fixed 2024-04-18RHSA-2024:1873
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsshim-0:15.8-2.el8_4Fixed 2024-04-18RHSA-2024:1873
Red Hat Enterprise Linux 8.6 Extended Update Supportshim-0:15.8-2.el8_6Fixed 2024-04-29RHSA-2024:2086
Red Hat Enterprise Linux 8.8 Extended Update Supportshim-0:15.8-2.el8Fixed 2024-04-18RHSA-2024:1883
Red Hat Enterprise Linux 8.8 Extended Update Supportshim-unsigned-x64-0:15.8-2.el8Fixed 2024-04-18RHSA-2024:1883
Red Hat Enterprise Linux 9shim-0:15.8-4.el9_3Fixed 2024-04-18RHSA-2024:1903
Red Hat Enterprise Linux 9.0 Extended Update Supportshim-0:15.8-3.el9Fixed 2024-04-16RHSA-2024:1835
Red Hat Enterprise Linux 9.0 Extended Update Supportshim-unsigned-aarch64-0:15.8-2.el9Fixed 2024-04-16RHSA-2024:1835
Red Hat Enterprise Linux 9.0 Extended Update Supportshim-unsigned-x64-0:15.8-2.el9Fixed 2024-04-16RHSA-2024:1835
Red Hat Enterprise Linux 9.2 Extended Update Supportshim-0:15.8-3.el9_2Fixed 2024-04-18RHSA-2024:1876

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40547.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-346 (16).

References

Check your stackJSON