CVE-2024-45780
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 · uneditedA flaw was found in grub2. When reading tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verify the allocation against possible integer overflows. It's possible to cause the allocation length to overflow with a crafted tar file, leading to a heap out-of-bounds write. This flaw eventually allows an attacker to circumvent secure boot protections.
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 confidenceHeap overflow vulnerability in grub2's tar file parser. When reading tar files, grub2 allocates a buffer for filenames but lacks proper integer overflow validation, allowing a crafted tar file to cause allocation length to overflow and write beyond the allocated heap buffer, enabling secure boot bypass.
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<= 2.12CVSS 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
- Local
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:H/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.
-
Identify installed grub2 versionRun 'grub2-install --version' or 'grub-install --version' to see the installed grub2 version. On distributions using systemd, also check /usr/bin/grub2-version or /boot/efi/EFI/*/grubx64.efi version metadata if available.Affected if The installed version is 2.12 or lower, meaning the integer overflow vulnerability exists in the tar parser.
-
Locate and inspect grub modulesList the modules in /boot/grub2/x86_64-efi/ or /usr/lib/grub/x86_64-efi/ (path varies by distribution). Check for 'tar.mod' to confirm the tar module exists.Affected if The tar module is present, indicating the vulnerable tar parsing code could be loaded.
-
Check if tar module is loaded in grub configInspect /boot/grub2/grub.cfg or /boot/efi/EFI/*/grub.cfg for 'insmod tar' or 'module' statements loading the tar module. Also check /etc/grub.d/* for custom menu entries.Affected if The tar module is explicitly loaded or configured, meaning the vulnerable code path can be triggered when parsing tar files.
-
Assess secure boot configurationCheck if secure boot is enabled by running 'mokutil --sb-state' or checking UEFI firmware settings. In secure boot environments, a compromised grub2 loader can bypass secure boot chain.Affected if Secure boot is enabled and the system uses signed grub2 bootloaders, making this vulnerability exploitable for secure boot bypass.
-
Check for untrusted tar file loading vectorsReview grub menu entries and boot scripts for references to tar files (commands like 'tar -C', 'linux', 'initrd' with tar archives, or custom menu entries loading tar files from network or removable media.Affected if The system loads tar files through grub (such as via 'tar' command, embedded initrds, or custom scripts), creating an attack surface for this vulnerability.
You are affected if your installed grub2 version is 2.12 or lower, the tar module is loaded or could be loaded, and the system either loads tar files through grub or uses secure boot with signed grub2 (making the heap overflow exploitable for bypass).
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 · scopedUpdate to grub2 version with integer overflow fix, rebuild and re-sign bootloader for secure boot environments; avoid loading untrusted tar files via grub.
grub2 version greater than 2.12 (or version with CVE-2024-45780 patch applied)
- Update grub2 package to the latest available version from your distribution's secure repository
- Verify the installed grub2 version is greater than 2.12 or contains the security patch for the integer overflow fix
- Regenerate Secure Boot signatures if using UEFI Secure Boot (re-sign the grubx64.efi or similar bootloader with sbsigntool)
- Reboot the system to ensure the updated bootloader is loaded
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing12.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,616.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-45780 — 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-2024-45780 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