{"id":"CVE-2020-15707","state":"PUBLISHED","title":"GRUB2 contained integer overflows when handling the initrd command, leading to a heap-based buffer overflow.","description":"Integer overflows were discovered in the functions grub_cmd_initrd and grub_initrd_init in the efilinux component of GRUB2, as shipped in Debian, Red Hat, and Ubuntu (the functionality is not included in GRUB2 upstream), leading to a heap-based buffer overflow. These could be triggered by an extremely large number of arguments to the initrd command on 32-bit architectures, or a crafted filesystem with very large files on any architecture. An attacker could use this to execute arbitrary code and bypass UEFI Secure Boot restrictions. This issue affects GRUB2 version 2.04 and prior versions.","publishedAt":"2020-07-29T17:45:34.577Z","updatedAt":"2024-09-17T03:07:49.301Z","severity":{"score":5.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["Ubuntu grub2 in Ubuntu"],"affected":[{"vendor":"Ubuntu","product":"grub2 in Ubuntu","versions":[{"version":"20.04 LTS","status":"affected","lessThan":"2.04-1ubuntu26.1","versionType":"custom"},{"version":"18.04 LTS","status":"affected","lessThan":"2.02-2ubuntu8.16","versionType":"custom"},{"version":"16.04 LTS","status":"affected","lessThan":"2.02~beta2-36ubuntu3.26","versionType":"custom"},{"version":"14.04 ESM","status":"affected","lessThan":"2.02~beta2-9ubuntu1.20","versionType":"custom"}]}],"references":["https://www.eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/","https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/GRUB2SecureBootBypass","http://ubuntu.com/security/notices/USN-4432-1","https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot","https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200011","https://access.redhat.com/security/vulnerabilities/grub2bootloader","https://www.suse.com/c/suse-addresses-grub2-secure-boot-issue/","https://www.suse.com/support/kb/doc/?id=000019673","https://www.openwall.com/lists/oss-security/2020/07/29/3","https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html","https://www.debian.org/security/2020/dsa-4735","http://www.openwall.com/lists/oss-security/2020/07/29/3","https://security.netapp.com/advisory/ntap-20200731-0008/","https://usn.ubuntu.com/4432-1/","http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.html","http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.html","https://security.gentoo.org/glsa/202104-05"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T19:46:36.523Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/15xxx/CVE-2020-15707.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-15707","state":"PUBLISHED","datePublished":"2020-07-29T17:45:34.577Z","dateUpdated":"2024-09-17T03:07:49.301Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2020-07-14T00:00:00.000Z"},"containers":{"cna":{"title":"GRUB2 contained integer overflows when handling the initrd command, leading to a heap-based buffer overflow.","descriptions":[{"lang":"en","value":"Integer overflows were discovered in the functions grub_cmd_initrd and grub_initrd_init in the efilinux component of GRUB2, as shipped in Debian, Red Hat, and Ubuntu (the functionality is not included in GRUB2 upstream), leading to a heap-based buffer overflow. These could be triggered by an extremely large number of arguments to the initrd command on 32-bit architectures, or a crafted filesystem with very large files on any architecture. An attacker could use this to execute arbitrary code and bypass UEFI Secure Boot restrictions. This issue affects GRUB2 version 2.04 and prior versions."}],"affected":[{"vendor":"Ubuntu","product":"grub2 in Ubuntu","versions":[{"version":"20.04 LTS","status":"affected","lessThan":"2.04-1ubuntu26.1","versionType":"custom"},{"version":"18.04 LTS","status":"affected","lessThan":"2.02-2ubuntu8.16","versionType":"custom"},{"version":"16.04 LTS","status":"affected","lessThan":"2.02~beta2-36ubuntu3.26","versionType":"custom"},{"version":"14.04 ESM","status":"affected","lessThan":"2.02~beta2-9ubuntu1.20","versionType":"custom"}]}],"references":[{"url":"https://www.eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/","tags":["x_refsource_CONFIRM"]},{"url":"https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/GRUB2SecureBootBypass","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://ubuntu.com/security/notices/USN-4432-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200011","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/vulnerabilities/grub2bootloader","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.suse.com/c/suse-addresses-grub2-secure-boot-issue/","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.suse.com/support/kb/doc/?id=000019673","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.openwall.com/lists/oss-security/2020/07/29/3","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2020/dsa-4735","name":"DSA-4735","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.openwall.com/lists/oss-security/2020/07/29/3","name":"[oss-security] 20200729 multiple secure boot grub2 and linux kernel vulnerabilities","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20200731-0008/","tags":["x_refsource_CONFIRM"]},{"url":"https://usn.ubuntu.com/4432-1/","name":"USN-4432-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.html","name":"openSUSE-SU-2020:1169","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.html","name":"openSUSE-SU-2020:1168","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://security.gentoo.org/glsa/202104-05","name":"GLSA-202104-05","tags":["vendor-advisory","x_refsource_GENTOO"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.7,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","description":"CWE-362 Race Condition (Concurrent Execution using Shared Resource with Improper Synchronization)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","dateUpdated":"2021-05-01T01:08:05.000Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc"},"credits":[{"lang":"en","value":"Colin Watson"},{"lang":"en","value":"Chris Coulson"}],"datePublic":"2020-07-29T00:00:00.000Z","source":{"advisory":"USN 4432-1","discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2020-07-29T17:00:00.000Z","ID":"CVE-2020-15707","STATE":"PUBLIC","TITLE":"GRUB2 contained integer overflows when handling the initrd command, leading to a heap-based buffer overflow."},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"grub2 in Ubuntu","version":{"version_data":[{"version_affected":"<","version_name":"20.04 LTS","version_value":"2.04-1ubuntu26.1"},{"version_affected":"<","version_name":"18.04 LTS","version_value":"2.02-2ubuntu8.16"},{"version_affected":"<","version_name":"16.04 LTS","version_value":"2.02~beta2-36ubuntu3.26"},{"version_affected":"<","version_name":"14.04 ESM","version_value":"2.02~beta2-9ubuntu1.20"}]}}]},"vendor_name":"Ubuntu"}]}},"credit":[{"lang":"eng","value":"Colin Watson"},{"lang":"eng","value":"Chris Coulson"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Integer overflows were discovered in the functions grub_cmd_initrd and grub_initrd_init in the efilinux component of GRUB2, as shipped in Debian, Red Hat, and Ubuntu (the functionality is not included in GRUB2 upstream), leading to a heap-based buffer overflow. These could be triggered by an extremely large number of arguments to the initrd command on 32-bit architectures, or a crafted filesystem with very large files on any architecture. An attacker could use this to execute arbitrary code and bypass UEFI Secure Boot restrictions. This issue affects GRUB2 version 2.04 and prior versions."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.7,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-362 Race Condition (Concurrent Execution using Shared Resource with Improper Synchronization)"}]}]},"references":{"reference_data":[{"name":"https://www.eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/","refsource":"CONFIRM","url":"https://www.eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/"},{"name":"https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/GRUB2SecureBootBypass","refsource":"UBUNTU","url":"https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/GRUB2SecureBootBypass"},{"name":"http://ubuntu.com/security/notices/USN-4432-1","refsource":"UBUNTU","url":"http://ubuntu.com/security/notices/USN-4432-1"},{"name":"https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot","refsource":"DEBIAN","url":"https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot"},{"name":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200011","refsource":"CONFIRM","url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200011"},{"name":"https://access.redhat.com/security/vulnerabilities/grub2bootloader","refsource":"REDHAT","url":"https://access.redhat.com/security/vulnerabilities/grub2bootloader"},{"name":"https://www.suse.com/c/suse-addresses-grub2-secure-boot-issue/","refsource":"SUSE","url":"https://www.suse.com/c/suse-addresses-grub2-secure-boot-issue/"},{"name":"https://www.suse.com/support/kb/doc/?id=000019673","refsource":"SUSE","url":"https://www.suse.com/support/kb/doc/?id=000019673"},{"name":"https://www.openwall.com/lists/oss-security/2020/07/29/3","refsource":"CONFIRM","url":"https://www.openwall.com/lists/oss-security/2020/07/29/3"},{"name":"https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html","refsource":"CONFIRM","url":"https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html"},{"name":"DSA-4735","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4735"},{"name":"[oss-security] 20200729 multiple secure boot grub2 and linux kernel vulnerabilities","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2020/07/29/3"},{"name":"https://security.netapp.com/advisory/ntap-20200731-0008/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20200731-0008/"},{"name":"USN-4432-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4432-1/"},{"name":"openSUSE-SU-2020:1169","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.html"},{"name":"openSUSE-SU-2020:1168","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.html"},{"name":"GLSA-202104-05","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202104-05"}]},"source":{"advisory":"USN 4432-1","discovery":"INTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/GRUB2SecureBootBypass","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://ubuntu.com/security/notices/USN-4432-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200011","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://access.redhat.com/security/vulnerabilities/grub2bootloader","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://www.suse.com/c/suse-addresses-grub2-secure-boot-issue/","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://www.suse.com/support/kb/doc/?id=000019673","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2020/07/29/3","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4735","name":"DSA-4735","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2020/07/29/3","name":"[oss-security] 20200729 multiple secure boot grub2 and linux kernel vulnerabilities","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20200731-0008/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://usn.ubuntu.com/4432-1/","name":"USN-4432-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.html","name":"openSUSE-SU-2020:1169","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.html","name":"openSUSE-SU-2020:1168","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202104-05","name":"GLSA-202104-05","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T13:22:30.731Z"}}]}}}