Buffer overflow in Gnu Grub2

CVE-2024-45780

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.

Vulnerability class: Buffer Overflow

EPSS: 0.003 (17.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-45780?
CVE-2024-45780 is a medium-severity vulnerability in Gnu Grub2, classified under Out-of-bounds Write. CVSS score: 6.7/10. Published 2025-03-03.
How severe is CVE-2024-45780?
Medium severity. CVSS v3 base score is 6.7 out of 10.