BreachSpiderVerified, not vibes

CVE-2025-0678 in Gnu Grub2 and 2 more products

High 7.8

A flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size...

Affects 3 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.3%
EPSS percentile20th
FixSee advisory

Requires local access, low complexity, low privileges required, no user interaction needed, 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
Redhat Enterprise Linux 7.0 8.0 9.0
Redhat Openshift Container Platform 4.0

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 →

Exploitation

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

Official description

A flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result, the direct_read() will perform a heap based out-of-bounds write during data reading. 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-0678
BreachSpider IDBS-2025-GLOBAL-210616-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2025-03-03
Last modified2026-11-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-190: Integer Overflow or Wraparound

Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-190

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in the GRUB2 bootloader's squash4 filesystem module can lead to integer overflow when processing user-controlled parameters, potentially causing a buffer overflow and leading to arbitrary code execution.

An attacker can craft a malicious squash4 filesystem with specially designed parameters that cause integer overflow in the buffer size calculation. This can lead to a buffer overflow when memory is allocated, potentially allowing the execution of arbitrary code.

Questions

What is CVE-2025-0678?

A vulnerability in the GRUB2 bootloader's squash4 filesystem module can lead to integer overflow when processing user-controlled parameters, potentially causing a buffer overflow and leading to arbitrary code execution.

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

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

Is CVE-2025-0678 actively exploited?

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

How do I remediate CVE-2025-0678?

Priority: HIGH. Advisory: https://access.redhat.com/security/cve/CVE-2025-0678

What systems are affected by CVE-2025-0678?

CVE-2025-0678 affects Gnu Grub2; Redhat Enterprise Linux, Openshift Container Platform.

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.