---
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
  - cve.org
epss: 0.00305
epssPercentile: 0.23089
ingestedAt: '2026-06-29T13:24:34.156Z'
vendor: Red Hat
product: grub2
affected:
  - grub2 <= 2.12
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2
  - grub2
  - openshift/ose-rhel-coreos-9
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2025-02-19T14:43:26.391966Z'
---

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