CVE-2023-4001
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn authentication bypass flaw was found in GRUB due to the way that GRUB uses the UUID of a device to search for the configuration file that contains the password hash for the GRUB password protection feature. An attacker capable of attaching an external drive such as a USB stick containing a file system with a duplicate UUID (the same as in the "/boot/" file system) can bypass the GRUB password protection feature on UEFI systems, which enumerate removable drives before non-removable ones. This issue was introduced in a downstream patch in Red Hat's version of grub2 and does not affect the upstream package.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGRUB uses UUID to locate its configuration file containing password hashes for authentication. An attacker can attach a USB drive with a duplicate UUID matching the /boot/ filesystem; on UEFI systems that enumerate removable drives before non-removable ones, GRUB loads the config from the attacker's USB instead of the legitimate /boot/ location, bypassing password protection.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 9.0= 38= 39all versionsCVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Physical
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify UEFI boot mode is in useCheck for the presence of /sys/firmware/efi directory. On Linux, run: ls -d /sys/firmware/efiAffected if The directory exists, indicating UEFI boot mode. Systems using legacy BIOS are not affected by this specific attack vector.
-
Check if GRUB uses UUID to locate configurationExamine the GRUB configuration file (typically /boot/grub2/grub.cfg or /boot/efi/EFI/*/grub.cfg) for lines containing 'search' with '--no-floppy' and '--uuid' or '--fs-uuid' parameters.Affected if The configuration contains UUID-based search commands for locating the config file. This is the default behavior in affected GRUB versions.
-
Determine if removable device boot is prioritized in UEFI boot orderAccess UEFI/BIOS settings and review the boot order sequence. Look for removable/USB devices listed before internal HDD/SSD. From Linux, check: efibootmgr -v (if efibootmgr is available) to see current boot entries.Affected if Removable/USB devices appear before internal storage in the boot order, allowing enumeration of attacker-controlled media before the legitimate boot partition.
-
Check if GRUB password authentication is configuredInspect GRUB configuration for password hash entries: grep -r 'password_pbkdf2\|password' /boot/grub2/ or look for 'superusers' directive in grub.cfg.Affected if Password protection is configured. If no password is set, the bypass is not applicable since no authentication exists to bypass.
-
Verify Secure Boot statusCheck if Secure Boot is enabled by running: mokutil --sb-state or checking /sys/firmware/efi/efivars/SecureBoot-*Affected if Secure Boot is disabled or not available. When disabled, unsigned or modified GRUB configurations can be loaded from alternate sources.
A system is affected if it runs in UEFI mode, uses UUID-based GRUB config location, has removable devices boot priority over internal storage, and has GRUB password protection configured while Secure Boot is disabled.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedConfigure UEFI/BIOS to disable booting from removable devices, enforce boot order to prioritize internal storage, and enable Secure Boot with signed bootloaders to prevent unauthorized GRUB configuration loading.
Red Hat Enterprise Linux 9.x: update to latest grub2 packages via 'dnf update grub2'; Fedora 38/39: update to latest grub2 packages via 'dnf update grub2'
- Update the system package cache: sudo dnf check-update
- Install the latest grub2 security updates: sudo dnf update grub2 grub2-efi-x64 grub2-common
- Reboot the system to ensure the updated GRUB is loaded
- Verify the GRUB password protection is working correctly after reboot
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-4001 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-4001 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data