CVE-2021-3981
CVE-2021-3981 is a low-severity vulnerability in Gnu Grub2 with a CVSS 3.x base score of 3.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-276.
Key facts
- Severity: Low (CVSS 3.x base score 3.3)
- CVSS v2: 2.1
- EPSS exploit prediction: 0% (24th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-276
- Affected product: Gnu Grub2
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2021-3981?
- 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.
- How severe is CVE-2021-3981?
- CVE-2021-3981 has a CVSS 3.x base score of 3.3, rated low severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
- Is CVE-2021-3981 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (24th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-3981?
- CVE-2021-3981 primarily affects Gnu Grub2. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-3981?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-3981 published?
- CVE-2021-3981 was published on 2022-03-10 and last updated on 2026-06-17.
References
- http://www.openwall.com/lists/oss-security/2024/01/15/3
- https://bugzilla.redhat.com/show_bug.cgi?id=2024170
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AI776L35DDYPCSAAJPJM3ZEQYSFZHBJX/
- https://security.gentoo.org/glsa/202209-12
Affected products (2)
- cpe:2.3:a:gnu:grub2:*:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
More vulnerabilities in Gnu Grub2
- CVE-2024-56737 — High (CVSS 8.8): GNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS…
- CVE-2022-2601 — High (CVSS 8.6): A buffer overflow was found in grub_font_construct_glyph(). A malicious crafted pf2 font can lead to an overflow when…
- CVE-2021-20233 — High (CVSS 8.2): A flaw was found in grub2 in versions prior to 2.06. Setparam_prefix() in the menu rendering code performs a length…
- CVE-2020-25632 — High (CVSS 8.2): A flaw was found in grub2 in versions prior to 2.06. The rmmod implementation allows the unloading of a module used as…
- CVE-2020-10713 — High (CVSS 8.2): A flaw was found in grub2, prior to version 2.06. An attacker may use the GRUB 2 flaw to hijack and tamper the GRUB…
- CVE-2022-28734 — High (CVSS 8.1): Out-of-bounds write when handling split HTTP headers; When handling split HTTP headers, GRUB2 HTTP code accidentally…
All CVEs affecting Gnu Grub2 →
Other CWE-276 (Incorrect Default Permissions) vulnerabilities
- CVE-2022-42150 — Critical (CVSS 10.0): TinyLab linux-lab v1.1-rc1 and cloud-labv0.8-rc2, v1.1-rc1 are vulnerable to insecure permissions. The default…
- CVE-2020-29492 — Critical (CVSS 10.0): Dell Wyse ThinOS 8.6 and prior versions contain an insecure default configuration vulnerability. A remote…
- CVE-2020-29491 — Critical (CVSS 10.0): Dell Wyse ThinOS 8.6 and prior versions contain an insecure default configuration vulnerability. A remote…
- CVE-2025-40585 — Critical (CVSS 9.9): A vulnerability has been identified in Energy Services (All versions with G5DFR). Affected solutions using G5DFR…
- CVE-2019-19896 — Critical (CVSS 9.9): In IXP EasyInstall 6.2.13723, there is Remote Code Execution via weak permissions on the Engine Service share. The…
- CVE-2020-37129 — Critical (CVSS 9.8): Memu Play 7.1.3 contains an insecure folder permissions vulnerability that allows low-privileged users to modify the…
Browse all CWE-276 (Incorrect Default Permissions) vulnerabilities →