# CVE-2024-45782: Grub2: fs/hfs: strcpy() using the volume name (fs/hfs.c:382)

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-03-03T17:05:25.397Z
- Modified: 2026-11-24T07:17:10.070Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A flaw was found in the HFS filesystem. When reading an HFS volume's name at grub_fs_mount(), the HFS filesystem driver performs a strcpy() using the user-provided volume name as input without properly validating the volume name's length. This issue may read to a heap-based out-of-bounds writer, impacting grub's sensitive data integrity and eventually leading to a secure boot protection bypass.

(As written by CVE List.)

## Affected

- grub2: up to 2.12
- openshift/ose-rhel-coreos-9: no versions given
- gnu grub2: up to 2.12
- redhat openshift_container_platform: 4.0
- redhat enterprise_linux: 7.0; 8.0; 9.0

## Every score

- redhat: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2024-45782> (broken-link, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2345858> (issue-tracking)

## Sources

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

---

Page: https://cve.day/CVE-2024-45782 · Whole record: https://cve.day/CVE-2024-45782.json · Rebuilt by cve.day 2026-11-25T22:58:52.174Z
