{"vuln_id":"CVE-2025-1125","aliases":[],"description":"When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal buffers size, however it misses to properly check for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculation to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result the hfsplus_open_compressed_real() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution by-passing secure boot protections.","published_at":"2025-03-03T15:15:16.300000Z","modified_at":"2026-11-24T07:17:19.223000Z","first_seen_at":"2026-11-24T08:34:54.106270Z","severity":"high","severity_source":"nvd","cvss_score":7.8,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-787"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00474,"epss_percentile":0.41508,"nvd_status":"Modified","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-1125"},"matched_alias":null,"items":[{"id":17755,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2025-1125: When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal bu…","summary":"When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal buffers size, however it misses to properly check for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculation to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result the hfsplus_open_compressed_real() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution by-passing secure boot protections.\n\nReferences:\nhttps://access.redhat.com/security/cve/CVE-2025-1125\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2346138\nhttps://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1125","published_at":"2025-03-03T15:15:16.300000Z","updated_at":"2026-11-24T07:17:19.223000Z","fetched_at":"2026-11-24T08:34:54.052308Z","severity":"high","cvss_score":7.8,"epss":0.00474,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2025-1125","vuln_ids":["CVE-2025-1125"],"tags":["CWE-787"],"cluster_id":15672,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/17755","html":"https://vulnwatch.ve1ve2.com/item/17755"}}]}