Vulnerability · Published Mar 3, 2021 · Assigned by redhat

CVE-2020-27749

Medium 6.7

In plain English

A medium-severity stack buffer overflow in grub2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.7Medium
Exploit odds (30 days)0.6%top 52.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A flaw was found in grub2 in versions prior to 2.06. Variable names present are expanded in the supplied command line into their corresponding variable contents, using a 1kB stack buffer for temporary storage, without sufficient bounds checking. If the function is called with a command line that references a variable with a sufficiently large payload, it is possible to overflow the stack buffer, corrupt the stack frame and control execution which could also circumvent Secure Boot protections. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8shim-aa6415.4-2.el8_1.almaALSA-2021:1734
AlmaLinux:8shim-ia3215.4-2.el8_1.almaALSA-2021:1734
AlmaLinux:8shim-unsigned-aarch6415-7.el8_1.almaALSA-2021:1734
AlmaLinux:8shim-unsigned-x6415.4-4.el8_1.almaALSA-2021:1734
AlmaLinux:8shim-x6415.4-2.el8_1.almaALSA-2021:1734
Alpine:v3.20grub2.06-r0ALPINE-CVE-2020-27749
Alpine:v3.21grub2.06-r0ALPINE-CVE-2020-27749
Alpine:v3.22grub2.06-r0ALPINE-CVE-2020-27749
Alpine:v3.23grub2.06-r0ALPINE-CVE-2020-27749
Alpine:v3.24grub2.06-r0ALPINE-CVE-2020-27749
Debian:12grub22.04-16DEBIAN-CVE-2020-27749
Debian:13grub22.04-16DEBIAN-CVE-2020-27749
Debian:14grub22.04-16DEBIAN-CVE-2020-27749
Rocky Linux:8fwupd0:1.5.9-1.el8_4RLSA-2021:2566
Rocky Linux:8shim-unsigned-aarch640:15-7.el8.1.1RLSA-2021:1734

Affected products (as reported)

VendorProductVersions
n/a grub2 grub 2.06

Weakness: CWE-121

References