Skip to content
Fencer Vulns
medium 6.5

CVE-2022-28737 json

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

published 2023-07-20 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-33176

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 26%
public exploits
0
none known

Summary

There'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.

Patch / fix

  • Red Hat Bootloader Team shim 15.6
  • redhat shim 15.6
  • shim Debian 14, Debian 13, Debian 12 15.6-1

debian advisories DEBIAN-CVE-2022-28737

  • shim Ubuntu 22.04 LTS, Ubuntu 20.04 LTS 15.7-0ubuntu1

ubuntu advisories UBUNTU-CVE-2022-28737

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • shim-unsigned-x64 RHEL 9 15.6-1.el9
  • shim RHEL 9 15.6-1.el9
  • grub2 RHEL 9 1:2.06-27.el9_0.7
  • grub2-pc RHEL 9 1:2.06-27.el9_0.7
  • shim-x64 RHEL 9 15.6-1.el9
  • shim-aa64 RHEL 9 15.6-1.el9
  • grub2-tools RHEL 9 1:2.06-27.el9_0.7
  • grub2-common RHEL 9 1:2.06-27.el9_0.7

red hat advisories RHSA-2022:5099RHSA-2022:5100RHSA-2022:5095RHSA-2022:5096RHSA-2022:5098

  • shim SLES for SAP 12 SP5, SLES 12 SP5 15.8-25.30.1
  • shim SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +16 more 15.8-150300.4.20.2
  • shim SLES 12 SP2-BCL 15.7-22.15.1
  • shim SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +4 more 15.7-25.27.1
  • shim SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES 15 SP2-LTSS +4 more 15.7-150100.3.35.1
  • shim SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +12 more 15.7-150300.4.16.1
  • shim SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +4 more 15.7-25.24.1
  • shim SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +12 more 15.7-150300.4.11.1

suse advisories SUSE-SU-2024:1462-1SUSE-SU-2024:1461-1SUSE-SU-2024:1368-1SUSE-SU-2023:2150-1SUSE-SU-2023:2091-1SUSE-SU-2023:2086-1

  • shim-unsigned-x64 AlmaLinux 8 15.6-1.el8.alma
  • grub2-pc AlmaLinux 8 1:2.02-123.el8_6.8.alma
  • shim-x64 AlmaLinux 8 15.6-1.el8.alma
  • shim-aa64 AlmaLinux 8 15.6-1.el8.alma
  • shim-ia32 AlmaLinux 8 15.6-1.el8.alma
  • grub2-tools AlmaLinux 8 1:2.02-123.el8_6.8.alma
  • grub2-common AlmaLinux 8 1:2.02-123.el8_6.8.alma
  • grub2-efi-x64 AlmaLinux 8 1:2.02-123.el8_6.8.alma

almalinux advisories ALSA-2022:5095ALSA-2022:5099

  • shim Rocky Linux 9 15.6-1.el9
  • shim Rocky Linux 9 15.6-1.el9.rocky.0.1
  • mokutil Rocky Linux 9 2:0.4.0-8.el9_0.1
  • shim-unsigned-x64 Rocky Linux 8 15.6-1.el8
  • shim Rocky Linux 8 15.6-1.el8
  • grub2 Rocky Linux 8 1:2.02-123.el8_6.8
  • mokutil Rocky Linux 8 1:0.3.0-11.el8_6.1

rocky linux advisories RLSA-2022:5099RLSA-2022:5095

  • shim CBL-Mariner 2.0 15.8-1
  • shim Azure Linux 3.0 15.8-3
  • shim-unsigned-aarch64 Azure Linux 3.0 15.8-3
  • shim-unsigned-x64 Azure Linux 3.0 15.8-3

azure linux advisories AZL-27559AZL-35252AZL-40910AZL-41063

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-28737 updated cvss 7.3

shim: Buffer overflow when loading crafted EFI images

  • Red Hat Enterprise Linux 7 shim, mokutil, shim-unsigned, shim-unsigned-x64, shim-unsigned-ia32
    affected: no fix available
  • Red Hat CodeReady Linux Builder (v. 9) shim-unsigned-x64 15.6-1.el9
    fixed: vendor fix RHSA-2022:5099
  • Red Hat CodeReady Linux Builder EUS (v. 8.2) shim-unsigned-x64 15.6-1.el8
    fixed: vendor fix RHSA-2022:5100
  • Red Hat Enterprise Linux BaseOS (v. 8) shim 15.6-1.el8, shim-x64 15.6-1.el8, shim-aa64 15.6-1.el8, shim-ia32 15.6-1.el8
    fixed: vendor fix RHSA-2022:5095
  • Red Hat Enterprise Linux BaseOS (v. 9) shim 15.6-1.el9, shim-x64 15.6-1.el9, shim-aa64 15.6-1.el9
    fixed: vendor fix RHSA-2022:5099
  • Red Hat Enterprise Linux BaseOS E4S (v. 8.1) shim 15.6-1.el8, shim-x64 15.6-1.el8, shim-ia32 15.6-1.el8
    fixed: vendor fix RHSA-2022:5098
  • Red Hat Enterprise Linux BaseOS EUS (v. 8.2) shim 15.6-1.el8, shim-x64 15.6-1.el8, shim-aa64 15.6-1.el8, shim-ia32 15.6-1.el8
    fixed: vendor fix RHSA-2022:5100
  • Red Hat Enterprise Linux BaseOS EUS (v.8.4) shim 15.6-1.el8, shim-x64 15.6-1.el8, shim-aa64 15.6-1.el8, shim-ia32 15.6-1.el8
    fixed: vendor fix RHSA-2022:5096
show 3 more
  • Red Hat Enterprise Linux CRB (v. 8) shim-unsigned-x64 15.6-1.el8
    fixed: vendor fix RHSA-2022:5095
  • Red Hat Enterprise Linux CRB EUS (v.8.4) shim-unsigned-x64 15.6-1.el8
    fixed: vendor fix RHSA-2022:5096
  • Red Hat Enterprise Linux BaseOS (v. 8) grub2 2.02-123.el8_6.8, mokutil 0.3.0-11.el8_6.1, grub2-pc 2.02-123.el8_6.8, grub2-tools 2.02-123.el8_6.8, grub2-common 2.02-123.el8_6.8, grub2-efi-x64 2.02-123.el8_6.8, +14 more Red Hat Enterprise Linux BaseOS (v. 9) grub2 2.06-27.el9_0.7, mokutil 0.4.0-8.el9_0.1, grub2-pc 2.06-27.el9_0.7, grub2-tools 2.06-27.el9_0.7, grub2-common 2.06-27.el9_0.7, grub2-efi-x64 2.06-27.el9_0.7, +11 more Red Hat Enterprise Linux BaseOS E4S (v. 8.1) grub2 2.02-87.el8_1.10, mokutil 0.3.0-9.el8_1.1, grub2-pc 2.02-87.el8_1.10, grub2-tools 2.02-87.el8_1.10, grub2-common 2.02-87.el8_1.10, grub2-efi-x64 2.02-87.el8_1.10, +12 more Red Hat Enterprise Linux BaseOS EUS (v. 8.2) grub2 2.02-87.el8_2.10, mokutil 0.3.0-9.el8_2.2, grub2-pc 2.02-87.el8_2.10, grub2-tools 2.02-87.el8_2.10, grub2-common 2.02-87.el8_2.10, grub2-efi-x64 2.02-87.el8_2.10, +14 more Red Hat Enterprise Linux BaseOS EUS (v.8.4) grub2 2.02-99.el8_4.9, grub2-pc 2.02-99.el8_4.9, mokutil 0.3.0-11.el8_4.1, grub2-tools 2.02-99.el8_4.9, grub2-common 2.02-99.el8_4.9, grub2-efi-x64 2.02-99.el8_4.9, +14 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-24-046-11 updated cvss 7.8

Siemens SCALANCE XCM-/XRM-300

  • Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4
    +5 more products
    Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
    affected: fixed in V2.4 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • Red Hat Bootloader Team shim
  • redhat shim

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.