SecurityContext

CVE-2026-12480: Keras - Information Disclosure

  • Cve: CVE-2026-12480
  • Name: Keras - Information Disclosure
  • Description: Keras versions up to and including 3.13.2 are vulnerable to an arbitrary HDF5 file read due to an incomplete fix for CVE-2026-1669. The vulnerability resides in the `H5IOStore._verify_dataset()` and `file_editor.py` methods, which fail to check the `dataset.is_virtual` property of HDF5 datasets. This allows an attacker to craft a malicious `.keras` model archive or `.h5` weights file containing a Virtual Dataset (VDS) that references external HDF5 files on the victim's filesystem. When the victim loads the model using `keras.models.load_model()` or `keras.saving.load_model()`, the external file is transparently read, leading to potential information disclosure. Fixed in versions 3.12.2 and 3.14.1.
  • Impact: Attackers can disclose arbitrary files on the victim's filesystem by tricking them into loading malicious model files.
  • Remediation: Update to versions 3.12.2 or 3.14.1 or later.
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirement type: user_interaction
  • Requirements: Victim must load a malicious crafted .keras or .h5 model file
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Epss score: 0.0019
  • Epss percentile: 0.08655
  • Assignee: [email protected]
  • Published at: 2026-07-01T17:16:19Z
  • Age in days: 146
  • Modified at: 2026-10-25T17:10:00Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12480
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
CWE-73External Control of File Name or Path

References

UrlSourceTags
https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10cnvd
https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7nvd

Products

ProductAffectedPlatform boundSourcesUrl
keras:keras< 3.12.2, 3.14.1nocna_alias/v1/products/keras/keras

Projects

RepositoryLink kindsIndexedUrl
keras-team/kerascommit, fix, package, releasesyes/v1/repositories/keras-team/keras

Index

  • Repositories: 174
  • Repositories high signal: 85
  • Packages: 1

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts