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…
Noroxi assessment
Priority: Monitor (action score 13/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.31% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: grub2-common (AlmaLinux:8) 1:2.02-123.el8.alma; grub2-efi-aa64 (AlmaLinux:8) 1:2.02-123.el8.alma; grub2-efi-aa64-cdboot (AlmaLinux:8) 1:2.02-123.el8.alma.
Low priority for now. Upgrade to grub2-common (AlmaLinux:8) 1:2.02-123.el8.alma; grub2-efi-aa64 (AlmaLinux:8) 1:2.02-123.el8.alma; grub2-efi-aa64-cdboot (AlmaLinux:8) 1:2.02-123.el8.alma or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Mar 10, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.3% · 25th percentile
- CWE
- CWE-276
Report tools
Action score
13
Monitor
Low priority for now.
- CVSS
- 13 / 40 · 3.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| gnu | grub2 | cpe:2.3:a:gnu:grub2 |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- gnu grub2up to 2.06 inclusive
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a grub2
- grub2 2.06 and previous versionsaffected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | grub2-common | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-aa64 | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-aa64-cdboot | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-aa64-modules | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-ia32 | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-ia32-cdboot | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-ia32-modules | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-x64 | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-x64-cdboot | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-efi-x64-modules | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-pc | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-pc-modules | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-ppc64le | before 1:2.02-123.el8_6.8.alma | 1:2.02-123.el8_6.8.alma |
| AlmaLinux:8 | grub2-ppc64le-modules | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-tools | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-tools-efi | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-tools-extra | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| AlmaLinux:8 | grub2-tools-minimal | before 1:2.02-123.el8.alma | 1:2.02-123.el8.alma |
| Debian:12 | grub2 | before 2.06-8 | 2.06-8 |
| openSUSE:Tumbleweed | grub2 | before 2.06-13.1 | 2.06-13.1 |
| Red Hat:enterprise_linux:8::baseos | grub2 | before 1:2.02-123.el8 | 1:2.02-123.el8 |
| Red Hat:enterprise_linux:8::baseos | grub2-common | before 1:2.02-123.el8 | 1:2.02-123.el8 |
| Red Hat:enterprise_linux:8::baseos | grub2-debuginfo | before 1:2.02-123.el8 | 1:2.02-123.el8 |
| Red Hat:enterprise_linux:8::baseos | grub2-debugsource | before 1:2.02-123.el8 | 1:2.02-123.el8 |
+22
Same product
gnu: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-56737GNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS filesystem.35Monitor
- CVE-2022-2601A buffer overflow was found in grub_font_construct_glyph().34Monitor
- CVE-2020-10713A flaw was found in grub2, prior to version 2.06.33Monitor
Published before and after this one in the same product
- ← EarlierCVE-2021-20233Mar 3, 2021 · A flaw was found in grub2 in versions prior to 2.06.32Monitor
- ← EarlierCVE-2021-3418Mar 15, 2021 · If certificates that signed grub are installed into db, grub can be booted directly.25Monitor
- Later →CVE-2021-3695Jul 6, 2022 · A crafted 16-bit grayscale PNG image may lead to a out-of-bounds write in the heap area.18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:grub2-common | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-aa64 | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-aa64-cdboot | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-aa64-modules | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-ia32 | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-ia32-cdboot | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-ia32-modules | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-x64 | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-x64-cdboot | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-efi-x64-modules | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-pc | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:grub2-pc-modules | 1:2.02-123.el8.alma · AlmaLinux:8 | Package registry (OSV) |
| debian:grub2 | 2.06-8 · Debian:12 | Package registry (OSV) |
| opensuse:grub2 | 2.06-13.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:grub2 | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-common | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-debuginfo | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-debugsource | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-aa64 | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-aa64-cdboot | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-aa64-modules | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-ia32 | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-ia32-cdboot | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-ia32-modules | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-x64 | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:grub2-efi-x64-cdboot | 1:2.02-123.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| rocky linux:grub2 | 1:2.02-123.el8 · Rocky Linux:8 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-276 · Incorrect Default PermissionsCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.