There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables

Summary

CVECVE-2022-28737
StatePUBLISHED
Assignercanonical
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-07-20 01:15:10 UTC
Updated2026-11-10 12:10:00 UTC
DescriptionThere's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The handle_image() function takes into account the SizeOfRawData field from each section to be loaded. An attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Problem Types: CWE-787


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.1[email protected]Secondary6.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
3.1CNACVSS6.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Redhat Shim All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Bootloader Team Shim affected 15.6 semver Linux
ADP Redhat Shim affected 15.6 semver Not specified

References

ReferenceSourceLinkTags
CVE - CVE-2022-28737 af854a3a-2127-422b-91ae-364da2661108 cve.mitre.org Third Party Advisory
oss-security - [SECURITY PATCH 00/30] Multiple GRUB2 vulnerabilities - 2022/06/07 round af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Chris Coulson (en)

Legacy QID Mappings

  • 159881 Oracle Enterprise Linux Security Update for shim (ELSA-2022-9465)
  • 159887 Oracle Enterprise Linux Security Update for shim-signed (ELSA-2022-9466)
  • 159943 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-5099)
  • 159967 Oracle Enterprise Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ELSA-2022-5095)
  • 159985 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-9596)
  • 159986 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-9595)
  • 181578 Debian Security Update for shim (CVE-2022-28737)
  • 240473 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5100)
  • 240474 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5099)
  • 240476 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5096)
  • 240477 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5095)
  • 282827 Fedora Security Update for shim (FEDORA-2022-98830efc68)
  • 377130 Alibaba Cloud Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ALINUX3-SA-2022:0134)
  • 377622 Alibaba Cloud Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ALINUX3-SA-2022:0164)
  • 672038 EulerOS Security Update for shim (EulerOS-SA-2022-2280)
  • 672050 EulerOS Security Update for shim (EulerOS-SA-2022-2235)
  • 672117 EulerOS Security Update for shim (EulerOS-SA-2022-2333)
  • 672129 EulerOS Security Update for shim (EulerOS-SA-2022-2304)
  • 672231 EulerOS Security Update for shim (EulerOS-SA-2022-2635)
  • 672256 EulerOS Security Update for shim (EulerOS-SA-2022-2667)
  • 672311 EulerOS Security Update for shim (EulerOS-SA-2022-2699)
  • 710619 Gentoo Linux GRUB Multiple Vulnerabilities (GLSA 202209-12)
  • 753881 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:1702-1)
  • 753962 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2091-1)
  • 753969 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2086-1)
  • 754060 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2084-1)
  • 755901 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:1863-1)
  • 940639 AlmaLinux Security Update for grub2, (ALSA-2022:5095)
  • 940640 AlmaLinux Security Update for grub2, (ALSA-2022:5099)
  • 960538 Rocky Linux Security Update for grub2, (RLSA-2022:5099)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report