CVE-2026-1669: Keras Arbitrary File Read Vulnerability in HDF5 Integration

keras Updated 13 Feb 2026

Summary

12/02/2026
No i
High
7.1

CVE-2026-1669: Keras vulnerable to arbitrary file read in the model loading mechanism (HDF5 integration). Affects keras versions >= 3.0.0, <= 3.13.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Keras is an open-source deep learning framework that simplifies the process of building and training neural networks. It is widely used for its user-friendly API and flexibility, allowing developers to create complex models with ease. However, versions 3.0.0 through 3.13.1 of Keras contain a vulnerability in the model loading mechanism, specifically related to HDF5 integration, which can lead to unauthorized access to local files.

Vulnerability Detail

The vulnerability arises from the model loading mechanism in Keras that utilizes HDF5 external dataset references. This flaw allows a remote attacker to craft a malicious .keras model file that, when loaded, can read local files on the system where Keras is running. The potential ramifications include the disclosure of sensitive information, which could lead to further exploitation or data breaches. The vulnerability is classified under CWE-73, indicating improper access control.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid loading .keras model files from untrusted sources. Implement strict validation checks on model files before loading them into your application.

Conclusion

The Keras vulnerability identified as CVE-2026-1669 poses a significant risk due to its potential for arbitrary file read through HDF5 integration. Users are strongly advised to update to a patched version of Keras and to implement best practices for file handling to mitigate risks.

See every vulnerability recorded for keras →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.1, indicating a high severity level.

Keras versions 3.0.0 through 3.13.1 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If you cannot update Keras immediately, ensure that you do not load model files from untrusted sources and implement validation checks.

Vulert monitors and alerts in real-time for open-source vulnerabilities in your software using just the Pipfile.lock. It helps you stay informed about potential vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for keras.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback