---
id: CVE-2024-45780
title: A flaw was found in grub2
summary: >-
  A 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…
severity: medium
cvss: 6.7
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: gnu
product: grub2
affected:
  - grub2 <= 2.12
published: '2025-03-03'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-45780'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2024-45780'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2345856'
    label: secalert@redhat.com
  - url: 'https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00279
epssPercentile: 0.18121
ingestedAt: '2026-06-29T13:24:34.177Z'
---

## Overview

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

## Affected

- `grub2 <= 2.12`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
