{"id":"UBUNTU-CVE-2022-28737","details":"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.","modified":"2026-02-04T02:22:05.305527Z","published":"2023-07-20T01:15:00Z","related":["USN-6355-1"],"upstream":["CVE-2022-28737"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-28737"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/06/07/5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6355-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-28737"}],"affected":[{"package":{"name":"shim","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/shim@13-0ubuntu2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-0ubuntu4","0.8-0ubuntu2","0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"13-0ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-28737.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/shim@15.4-0ubuntu7?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-0ubuntu2","0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2","15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7"],"ecosystem_specific":{"binaries":[{"binary_version":"15.4-0ubuntu7","binary_name":"shim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-28737.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/shim@15.7-0ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9+1474479173.6c180c6-1ubuntu1","13-0ubuntu2","15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7","15.4-0ubuntu9","15.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"shim","binary_version":"15.7-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-28737.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/shim@15.7-0ubuntu1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.7-0ubuntu1"}]}],"versions":["15+1533136590.3beb971-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu1","15+1552672080.a4a1fbe-0ubuntu2","15.4-0ubuntu7","15.4-0ubuntu9"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"shim","binary_version":"15.7-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-28737.json"}},{"package":{"name":"shim","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/shim@15.7-0ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.7-0ubuntu1"}]}],"versions":["15.4-0ubuntu9"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"shim","binary_version":"15.7-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-28737.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}