The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-53630

CVE-2025-53630: llama.cpp Buffer Overflow Vulnerability

CVE-2025-53630 is a buffer overflow vulnerability in llama.cpp caused by an integer overflow in gguf_init_from_file_impl that leads to heap out-of-bounds read/write. This article covers technical details, impact, and mitigation.

Published: May 11, 2026

CVE-2025-53630 Overview

CVE-2025-53630 is an integer overflow vulnerability in llama.cpp, an open-source C/C++ inference engine for large language models (LLMs). The flaw resides in the gguf_init_from_file_impl function within ggml/src/gguf.cpp. Attackers can trigger an integer overflow during GGUF model file parsing, producing a heap out-of-bounds read or write [CWE-122]. The issue is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.

Critical Impact

A malicious GGUF model file can corrupt heap memory in any application that loads it through llama.cpp, enabling potential arbitrary code execution and full compromise of confidentiality, integrity, and availability.

Affected Products

  • llama.cpp versions prior to commit 26a48ad699d50b6268900062661bd22f3e792579
  • Applications and services embedding vulnerable llama.cpp builds for GGUF model loading
  • Downstream ggml consumers that invoke gguf_init_from_file_impl on untrusted input

Discovery Timeline

  • 2025-07-10 - CVE-2025-53630 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-53630

Vulnerability Analysis

The vulnerability lives in gguf_init_from_file_impl, the routine that parses GGUF model containers in ggml/src/gguf.cpp. Untrusted size or count values read from the file header are used in arithmetic operations without sufficient bounds checking. When the computed value wraps past the maximum of its integer type, the result becomes a small or otherwise invalid allocation size while the parser continues to read or write the full attacker-controlled length.

This mismatch produces a heap-based out-of-bounds read or write [CWE-122]. The attack is reachable over the network because GGUF files are routinely fetched from model registries, shared between users, or served from hosted inference endpoints.

Root Cause

The root cause is unchecked integer arithmetic on attacker-controlled length and count fields parsed from the GGUF header and metadata sections. Multiplications between element counts and element sizes can overflow size_t or 32-bit width values, yielding undersized buffers that the subsequent copy or read loop overruns.

Attack Vector

An attacker delivers a crafted GGUF file to a target that loads it with a vulnerable llama.cpp build. Delivery paths include malicious Hugging Face uploads, supply-chain compromise of model repositories, model marketplaces, and any application that accepts user-provided model files. No authentication or user interaction is required beyond loading the file. Refer to the GitHub Security Advisory GHSA-vgg9-87g3-85w8 for technical details.

Detection Methods for CVE-2025-53630

Indicators of Compromise

  • Unexpected crashes, segmentation faults, or heap corruption errors in processes hosting llama.cpp
  • Inference service processes spawning child processes or shells after loading a model file
  • GGUF files sourced from unverified third-party repositories or mirrors
  • Anomalous outbound network connections from model-loading processes immediately after a load event

Detection Strategies

  • Inventory all binaries and containers that link llama.cpp or ggml and verify the commit hash against 26a48ad699d50b6268900062661bd22f3e792579 or later
  • Hash and allow-list GGUF model files at ingestion, blocking loads of unknown hashes
  • Instrument staging environments with AddressSanitizer (ASan) to catch heap out-of-bounds access during model loading
  • Monitor process telemetry for crashes in gguf_init_from_file_impl call paths

Monitoring Recommendations

  • Log every GGUF file load with source URL, file hash, and loading user or service identity
  • Alert on crash signals (SIGSEGV, SIGABRT) from inference workers and correlate with recent model fetches
  • Track network egress from inference hosts to detect post-exploitation command-and-control activity

How to Mitigate CVE-2025-53630

Immediate Actions Required

  • Upgrade llama.cpp to a build that includes commit 26a48ad699d50b6268900062661bd22f3e792579 or later
  • Rebuild and redeploy any container images, Python wheels, or downstream packages that vendor llama.cpp
  • Restrict GGUF model loading to files from trusted, signed sources only
  • Audit existing model repositories for files of unknown provenance and quarantine them pending review

Patch Information

The vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579 of the upstream repository. See the GitHub commit and the GHSA-vgg9-87g3-85w8 advisory for fix details. Rebuild all downstream binaries against a patched source tree.

Workarounds

  • Run inference workers in sandboxed containers with seccomp, no-new-privileges, and read-only root filesystems to limit blast radius
  • Drop network egress capabilities from inference processes that do not require outbound connectivity
  • Validate GGUF files against a strict allow-list of cryptographic hashes before loading
  • Isolate model loading in a separate, low-privilege process from inference and application logic
bash
# Configuration example: verify llama.cpp commit and pin GGUF hashes
git -C llama.cpp rev-parse HEAD
# Expect: 26a48ad699d50b6268900062661bd22f3e792579 or newer

# Verify model file integrity before loading
sha256sum model.gguf | grep -f trusted_model_hashes.txt \
  || { echo "Untrusted GGUF file - refusing to load"; exit 1; }

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLlama Cpp

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27940: llama.cpp Buffer Overflow Vulnerability

  • CVE-2026-2069: llama.cpp Buffer Overflow Vulnerability

  • CVE-2025-49847: Llama.cpp Buffer Overflow Vulnerability

  • CVE-2026-34159: llama.cpp RPC Backend RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English