VDB

CVE-2021-3981

CVE-2021-3981 PUBLISHED

Reported by redhat · Published March 8, 2022

A flaw in grub2 was found where its configuration file, known as grub.cfg, is being created with the wrong permission set allowing non privileged users to read its content. This represents a low severity confidentiality issue, as those users can eventually read any encrypted passwords present in grub.cfg. This flaw affects grub2 2.06 and previous versions. This issue has been fixed in grub upstream but no version with the fix is currently released.

Fixed versions

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

PackageEcosystemFixed in
grub2-efi-x64-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-efi-aa64-cdbootAmazon Linux1:2.06-9.amzn2.0.1
grub2-pc-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-tools-minimalAmazon Linux1:2.06-61.amzn2023.0.3
grub2-efi-x64-ec2Amazon Linux1:2.06-61.amzn2023.0.3
grub2-toolsAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-efi-x64Amazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-efi-aa64-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-tools-extraAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2Amazon Linux1:2.06-9.amzn2.0.1
grub2-tools-efiAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1
grub2-efi-aa64Amazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-9.amzn2.0.1

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

Affected products

VendorProductVersions
n/agrub2grub2 2.06 and previous versions
amazon:2023grub2-efi-x64-modules0
amazon:2grub2-efi-aa64-cdboot0
amazon:2grub2-pc-modules0
amazon:2023grub2-tools-minimal0
amazon:2grub2-efi-x64-modules0
amazon:2023grub2-efi-x64-ec20
amazon:2grub2-tools0
amazon:2grub2-efi-x640
amazon:2023grub2-efi-aa64-modules0
amazon:2023grub2-efi-x640
amazon:2023grub2-tools-extra0
amazon:2grub20
amazon:2023grub2-tools0
amazon:2023grub2-tools-efi0
amazon:2grub2-efi-aa640
amazon:2023grub2-pc0
amazon:2grub2-pc0
amazon:2grub2-emu0
amazon:2grub2-efi-x64-cdboot0

…and 17 more

Timeline

  • Mar 8, 2022 CVE Published
  • Mar 9, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 13, 2025 PoC Published (2 in total, the first dated here)
  • Feb 13, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory (19 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (16 in total, the first dated here)
  • Jul 23, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3981
vulnetix vdb fixes CVE-2021-3981

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-3981/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 ›