---
id: CVE-2024-45776
title: >-
  When reading the language .mo file in grub_mofile_open(), grub2 fails to
  verify an integer overflow when allocating its internal buffer
summary: >-
  When reading the language .mo file in grub_mofile_open(), grub2 fails to
  verify an integer overflow when allocating its internal buffer. A crafted .mo
  file may lead the buffer size calculation to overflow, leading to out-of-bound
  reads a…
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
published: '2025-02-18'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-45776'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:16154'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:6990'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-45776'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2339182'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00261
epssPercentile: 0.15977
ingestedAt: '2026-06-29T13:24:34.156Z'
---

## Overview

When reading the language .mo file in grub_mofile_open(), grub2 fails to verify an integer overflow when allocating its internal buffer. A crafted .mo file may lead the buffer size calculation to overflow, leading to out-of-bound reads and writes. This flaw allows an attacker to leak sensitive data or overwrite critical data, possibly circumventing secure boot protections.

## Remediation

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