# CVE-2025-0624: Grub2: net: out-of-bounds write in grub_net_search_config_file()

- Severity: High 7.6 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.62%, higher than 76% of CVEs (2026-12-01)
- Published: 2025-02-19T18:23:21.463Z
- Modified: 2026-11-23T15:17:15.223Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- grub2: up to 2.12 (not affected: from 1:2.02-0.87.el7_9.15 before *; from 1:2.02-162.el8_10 before *; from 1:2.02-87.el8_2.13 before *; from 1:2.02-99.el8_4.12 before *; from 1:2.02-123.el8_6.18 before *; from 1:2.02-152.el8_8.2 before *; from 1:2.06-94.el9_5 before *; from 1:2.06-27.el9_0.22 before *; from 1:2.06-61.el9_2.10 before *; from 1:2.06-86.el9_4.2 before *)
- openshift/ose-rhel-coreos-8: no versions given (not affected: from 412.86.202503310142-0 before *)
- openshift/ose-rhel-coreos-9: no versions given (not affected: from 413.92.202504070146-0 before *; from 414.92.202505141057-0 before *; from 415.92.202504282058-0 before *; from 416.94.202503252048-0 before *; from 417.94.202503241418-0 before *; from 418.94.202504021150-0 before *)

## References

- <https://access.redhat.com/errata/RHSA-2025:2521> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2653> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2655> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2675> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2784> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2799> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2867> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2869> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3297> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3301> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3367> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3396> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3573> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3577> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3780> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:4422> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:7702> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-0624> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2346112> (issue-tracking)
- <https://security.netapp.com/advisory/ntap-20250516-0006/>

## Sources

- CVE List: [CVE-2025-0624](https://www.cve.org/CVERecord?id=CVE-2025-0624), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2025-0624](https://nvd.nist.gov/vuln/detail/CVE-2025-0624), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2025-0624 · Whole record: https://cve.day/CVE-2025-0624.json · Rebuilt by cve.day 2026-11-25T22:58:54.185Z
