VDB

CVE-2021-20225

CVE-2021-20225 PUBLISHED

Reported by redhat · Published March 3, 2021

A flaw was found in grub2 in versions prior to 2.06. The option parser allows an attacker to write past the end of a heap-allocated buffer by calling certain commands with a large number of specific short forms of options. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
grub2-commonAmazon Linux1:2.06-2.amzn2.0.1
grub2-tools-minimalAmazon Linux1:2.06-2.amzn2.0.1
grub2-efi-aa64-ec2Amazon Linux1:2.06-2.amzn2.0.1
grub2-efi-x64Amazon Linux1:2.06-2.amzn2.0.1
grub2-efi-x64-ec2Amazon Linux1:2.06-2.amzn2.0.1
grub2-tools-efiAmazon Linux1:2.06-2.amzn2.0.1
grub2-pc-modulesAmazon Linux1:2.06-2.amzn2.0.1
grubArch Linux2:2.06-1
grub2-pcAmazon Linux1:2.06-2.amzn2.0.1
grub2-tools-extraAmazon Linux1:2.06-2.amzn2.0.1
grub2-toolsAmazon Linux1:2.06-2.amzn2.0.1
grub2-efi-aa64-modulesAmazon Linux1:2.06-2.amzn2.0.1

4 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/agrub2grub 2.06
n/agrub22.06

Timeline

  • Mar 2, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 7, 2026 Distribution Patch
  • Mar 7, 2026 Security Advisory (5 in total, the first dated here)
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20225
vulnetix vdb fixes CVE-2021-20225

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20225/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›