---
id: CVE-2025-0624
title: A flaw was found in grub2
summary: >-
  A flaw was found in grub2. During the network boot process, when trying to
  search for the configuration file, grub copies data from a user controlled
  environment variable into an internal buffer using the grub_strcpy() function.
  During t…
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-787
published: '2025-02-19'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T03:16:39.887'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-0624'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:2521'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2653'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2655'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2675'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2784'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2799'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2867'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2869'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3297'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3301'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3367'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3396'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3573'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3577'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:3780'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:4422'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:7702'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-0624'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2346112'
    label: secalert@redhat.com
  - url: 'https://security.netapp.com/advisory/ntap-20250516-0006/'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
epss: 0.01405
epssPercentile: 0.72441
ingestedAt: '2026-06-29T13:24:34.162Z'
vendor: Red Hat
product: grub2
affected:
  - grub2 <= 2.12
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - grub2 (all versions)
  - openshift/ose-rhel-coreos-8 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - grub2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2025-09-19T03:55:15.282969Z'
---

## Overview

A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.

## Remediation

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