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
    • 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-2026-0897

CVE-2026-0897: Google Keras HDF5 DoS Vulnerability

CVE-2026-0897 is a denial of service flaw in Google Keras HDF5 weight loading that enables memory exhaustion attacks via crafted model files. This article covers technical details, affected versions 3.0.0-3.13.0, and mitigations.

Published: January 23, 2026

CVE-2026-0897 Overview

CVE-2026-0897 is a Denial of Service (DoS) vulnerability discovered in the HDF5 weight loading component of Google Keras, a widely-used open-source deep learning framework. The vulnerability stems from improper resource allocation controls (CWE-770: Allocation of Resources Without Limits or Throttling) that allow an attacker to trigger memory exhaustion and crash the Python interpreter by providing a maliciously crafted .keras archive.

The attack leverages a specially crafted archive containing a valid model.weights.h5 file with a dataset that declares an extremely large shape. When the Keras framework attempts to load this file, it allocates memory based on the declared shape without proper validation or limits, leading to resource exhaustion.

Critical Impact

Successful exploitation can cause complete denial of service through memory exhaustion, crashing the Python interpreter and disrupting machine learning pipelines and production systems that rely on Keras model loading functionality.

Affected Products

  • Google Keras versions 3.0.0 through 3.13.0
  • All platforms (Windows, Linux, macOS)
  • Applications using the HDF5 weight loading functionality

Discovery Timeline

  • 2026-01-15 - CVE CVE-2026-0897 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2026-0897

Vulnerability Analysis

This vulnerability targets the HDF5 weight loading mechanism in Keras, which is responsible for deserializing model weights stored in the .keras archive format. The HDF5 format allows datasets to declare their shape (dimensions), which Keras uses to allocate memory for loading the weight tensors.

The root issue lies in the absence of validation or throttling when processing the declared shape metadata. An attacker can craft a model.weights.h5 file where the dataset shape declares dimensions that, when multiplied together, result in a memory allocation request far exceeding available system resources.

When a victim application attempts to load a model from such a malicious archive, Keras will attempt to allocate the declared memory size, causing rapid memory exhaustion. This leads to an unrecoverable crash of the Python interpreter, effectively denying service to any application or pipeline that depends on this functionality.

Root Cause

The vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The HDF5 weight loading component fails to implement adequate bounds checking or resource limits when processing dataset shape declarations. The code trusts the shape metadata embedded in the HDF5 file without validating whether the declared dimensions are reasonable or within acceptable memory bounds before attempting allocation.

Attack Vector

The attack is network-based, requiring user interaction to load a malicious .keras archive. Attack scenarios include:

  1. Malicious Model Distribution: An attacker uploads a crafted model to a public model repository or shares it through collaboration platforms
  2. Supply Chain Attack: Compromised model files distributed through legitimate-looking channels
  3. Phishing: Targeted delivery of malicious model archives to machine learning engineers or data scientists

The attacker crafts a .keras archive containing a model.weights.h5 file with an HDF5 dataset declaring an extremely large shape. For example, a shape declaration like (1000000, 1000000, 1000000) would request allocation of several petabytes of memory, far exceeding typical system resources.

When the victim loads the malicious archive using Keras model loading functions, the framework attempts to allocate memory based on the declared shape, leading to immediate memory exhaustion and interpreter crash.

Detection Methods for CVE-2026-0897

Indicators of Compromise

  • Sudden memory spikes when loading .keras model files
  • Python interpreter crashes during model loading operations
  • System out-of-memory errors correlated with HDF5 file processing
  • Unusual HDF5 files with extremely large declared dataset shapes

Detection Strategies

  • Monitor system memory usage during model loading operations for abnormal allocation patterns
  • Implement file integrity checks on .keras archives before loading, especially from untrusted sources
  • Deploy endpoint detection and response (EDR) solutions like SentinelOne Singularity to detect resource exhaustion patterns
  • Scan incoming model files for anomalous HDF5 shape declarations using static analysis tools

Monitoring Recommendations

  • Enable memory usage alerts for processes performing Keras model operations
  • Log all model loading events with source file hashes and origin information
  • Monitor for repeated crash events in ML pipeline services
  • Implement canary deployments that test model files in isolated environments before production use

How to Mitigate CVE-2026-0897

Immediate Actions Required

  • Upgrade Google Keras to a patched version beyond 3.13.0 when available
  • Validate and verify the source of all .keras model files before loading
  • Implement model loading in sandboxed environments with memory limits
  • Review and restrict access to model loading functionality in production systems

Patch Information

The Keras development team has addressed this vulnerability in a GitHub Pull Request. Organizations should monitor the official Keras repository for the release of a patched version and upgrade immediately when available. The fix implements proper bounds checking and resource limits for dataset shape declarations during HDF5 weight loading.

Workarounds

  • Load untrusted model files in isolated containers with strict memory limits using cgroups or container resource constraints
  • Implement pre-validation scripts that inspect HDF5 shape declarations before loading models
  • Use ulimit on Linux/Unix systems to set hard memory limits for processes that load model files
  • Consider implementing a model validation pipeline that tests files in sandboxed environments before allowing production use
bash
# Configuration example
# Set memory limits for processes loading model files
# Linux: Create a cgroup with memory constraints
sudo cgcreate -g memory:/keras_sandbox
echo "4G" | sudo tee /sys/fs/cgroup/memory/keras_sandbox/memory.limit_in_bytes

# Run model loading in constrained environment
sudo cgexec -g memory:keras_sandbox python load_model.py

# Alternative: Use ulimit (less robust)
ulimit -v 4194304  # Limit virtual memory to 4GB
python load_model.py

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGoogle Keras

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/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-770
  • Technical References
  • GitHub Keras Pull Request
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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