# 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 priv…

- Severity: Low 3.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2022-03-08T14:02:15.000Z
- Modified: 2026-06-17T04:06:20.127Z
- Weaknesses: CWE-276
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- grub2: grub2 2.06 and previous versions
- gnu grub2: up to 2.06
- fedoraproject fedora: 34

## Every score

- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AI776L35DDYPCSAAJPJM3ZEQYSFZHBJX/> (vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024170> (issue-tracking, patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202209-12> (third-party-advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/01/15/3>

## Sources

- CVE List: [CVE-2021-3981](https://www.cve.org/CVERecord?id=CVE-2021-3981), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2021-3981](https://nvd.nist.gov/vuln/detail/CVE-2021-3981), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3981 · Whole record: https://cve.day/CVE-2021-3981.json · Rebuilt by cve.day 2026-11-25T22:58:07.158Z
