Medium
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-28737
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 03:04 UTC · Revision 1
Source evidence
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
core-osv · Original sourcePublished 20 Jul 2023, 00:26 UTC
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.
osv:CVE-2022-28737
Complete source record
{
"id": "543cd8e36ddcbb67b22802e4f1bbbb310b428eb847b89df45f8a2ccf95fd30b0",
"url": "https://osv.dev/vulnerability/CVE-2022-28737",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables",
"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.",
"evidence": "osv:CVE-2022-28737",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-28737",
"aliases": [
"CVE-2022-28737"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rhboot/shim",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "505cdb678b319fcf9a7fdee77c0f091b4147cbe5"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "15.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "15.6"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"15.6-rc2",
"15.5",
"15.5-rc2",
"15.4",
"15.3",
"shim-15.3-rc4",
"shim-15.3-rc3",
"shim-15.3-rc2",
"shim-15.3-rc1",
"15.2",
"15",
"14",
"13",
"12",
"11",
"0.9",
"0.8",
"0.7",
"0.5",
"0.4",
"0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-28737.json"
}
}
],
"modified": "2026-10-28T02:30:25.358153378Z",
"provider": "osv",
"references": [
"https://github.com/rhboot/shim/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28737.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-28737",
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28737",
"https://www.openwall.com/lists/oss-security/2022/06/07/5"
],
"provider_metadata": {
"cna_assigner": "canonical",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28737.json"
}
},
"related_cves": [
{
"value": "CVE-2022-28737",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492112,
"published_at": "2023-07-20T00:26:15.627+00:00"
}