CVEfocus › CVE database › CVE-2023-40549

CVE-2023-40549Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe file

CVSS 6.2 MediumEPSS 0.4% (higher than 22% of CVEs)Published 2024-01-29Updated 2025-11-20Assigner: redhat

An out-of-bounds read flaw was found in Shim due to the lack of proper boundary verification during the load of a PE binary. This flaw allows an attacker to load a crafted PE binary, triggering the issue and crashing Shim, resulting in a denial of service.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Debian, 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

28Fixed
9Fix pending
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 25.10secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40549
Ubuntu 24.04shim-signedFixed1.58UBUNTU-CVE-2023-40549
Ubuntu 22.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 22.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40549
Ubuntu 22.04shim-signedFixed1.51.4UBUNTU-CVE-2023-40549
Ubuntu 20.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 20.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40549
Ubuntu 20.04shim-signedFixed1.40.10UBUNTU-CVE-2023-40549
Ubuntu 18.04secureboot-dbFix pending
Ubuntu 18.04shimFix pendingUBUNTU-CVE-2023-40549
Ubuntu 18.04shim-signedFix pendingUBUNTU-CVE-2023-40549
Ubuntu 16.04secureboot-dbFix pending
Ubuntu 16.04shimFix pendingUBUNTU-CVE-2023-40549
Ubuntu 16.04shim-signedFix pendingUBUNTU-CVE-2023-40549
Ubuntu 14.04secureboot-dbFix pending
Ubuntu 14.04shimFix pendingUBUNTU-CVE-2023-40549
Ubuntu 14.04shim-signedFix pendingUBUNTU-CVE-2023-40549
Debian 14shimFixed15.8-1DEBIAN-CVE-2023-40549
Debian 13shimFixed15.8-1DEBIAN-CVE-2023-40549
Debian 12shimFixed15.8-1~deb12u1DEBIAN-CVE-2023-40549
Red Hat Enterprise Linux 9shimFixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-aa64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-x64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 8shimFixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-aa64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-ia32Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-x64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 7mokutilFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shimFixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-ia32Fixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-signedFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-ia32Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-x64Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-x64Fixed0:15.8-1.el7RHSA-2024:1959
AlmaLinux 9shim-aa64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 9shim-x64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 8shim-aa64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-ia32Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-x64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902

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.

Workaround: There's no available mitigation for this issue.

Vendor advisories:

References

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.