cve.bz

CVE-2021-3981 Incorrect Default Permissions

3.3 lowEPSS 0.3%Fix available

Low (3.3). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3981 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3981?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3981?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3981 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:grub2through 2.06
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14grub22.06-8DEBIAN-CVE-2021-3981
Ubuntu16.04:LTS, 18.04:LTSgrub2-signed, grub2-unsignedno fix listedUBUNTU-CVE-2021-3981
Ubuntu20.04:LTSgrub2-signed1.187.3~20.04.1UBUNTU-CVE-2021-3981 USN-6355-1
Ubuntu20.04:LTSshim-signed1.40.9USN-6355-1
Ubuntu20.04:LTS, 22.04:LTSgrub2-unsigned2.06-2ubuntu14.1UBUNTU-CVE-2021-3981 USN-6355-1
Ubuntu20.04:LTS, 22.04:LTSshim15.7-0ubuntu1USN-6355-1
Ubuntu22.04:LTSgrub2-signed1.187.3~22.04.1UBUNTU-CVE-2021-3981 USN-6355-1
Ubuntu22.04:LTSshim-signed1.51.3USN-6355-1
UbuntuPro:14.04:LTSgrub2-signedno fix listedUBUNTU-CVE-2021-3981
Red Hatenterprise_linux:8::baseosgrub2, grub2-pc, grub2-tools and 22 more1:2.02-123.el8RHSA-2022:2110
openSUSETumbleweedgrub22.06-13.1openSUSE-SU-2024:11700-1
AlmaLinux8grub2-pc, grub2-tools, grub2-common and 14 more1:2.02-123.el8.almaALSA-2022:2110
AlmaLinux8grub2-ppc64le1:2.02-123.el8_6.8.almaALSA-2022:2110
Rocky Linux8grub21:2.02-123.el8RLSA-2022:2110
Azure Linux2grub22.06-5AZL-8937
Azure Linux3grub22.06-14AZL-34786

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8grub2-1:2.02-123.el8Fixed 2022-05-10RHSA-2022:2110
Red Hat Enterprise Linux 7grub2Affected
Red Hat Enterprise Linux 9grub2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3981.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON