BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-1125 in Gnu Grub2

High 7.8

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.8
EPSS0.4%
EPSS percentile28th
FixSee advisory

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Gnu Grub2 ≤ 2.12

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-1125
BreachSpider IDBS-2025-GLOBAL-235088-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2025-03-03
Last modified2026-11-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

A vulnerability in GRUB's HFS filesystem module can lead to integer overflow when calculating buffer sizes based on user-controlled parameters from the filesystem metadata, potentially causing a buffer underallocation.

An attacker can craft a malicious HFS filesystem with specific metadata values that trigger integer overflow in GRUB's buffer size calculation logic. This can lead to a smaller buffer being allocated than expected, potentially leading to memory corruption or other security issues.

Questions

What is CVE-2025-1125?

A vulnerability in GRUB's HFS filesystem module can lead to integer overflow when calculating buffer sizes based on user-controlled parameters from the filesystem metadata, potentially causing a buffer underallocation.

What is the CVSS score for CVE-2025-1125?

CVE-2025-1125 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.4%.

Is CVE-2025-1125 actively exploited?

No confirmed active exploitation of CVE-2025-1125 as of 2026-11-25.

How do I remediate CVE-2025-1125?

Priority: HIGH. Advisory: https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html PSIRT: [email protected]

What systems are affected by CVE-2025-1125?

CVE-2025-1125 affects Gnu Grub2.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gnu","product":"Grub2","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-24.