# CVE-2022-28737: There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables

- Severity: Medium 6.5 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 26% of CVEs (2026-11-30)
- Published: 2023-07-20T00:26:15.627Z
- Modified: 2026-11-10T12:10:00.177Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: canonical

## Description

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.

(As written by CVE List.)

## Affected

- shim: before 15.6
- redhat shim: before 15.6

## Every score

- canonical: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://www.openwall.com/lists/oss-security/2022/06/07/5> (mailing-list, third-party-advisory)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28737> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2022-28737](https://www.cve.org/CVERecord?id=CVE-2022-28737), CVE Terms of Use, modified 2024-10-22
- NVD: [CVE-2022-28737](https://nvd.nist.gov/vuln/detail/CVE-2022-28737), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-28737 · Whole record: https://cve.day/CVE-2022-28737.json · Rebuilt by cve.day 2026-11-25T22:58:19.474Z
