SecurityContext

CVE-2026-12479: Keras - Path Traversal

  • Cve: CVE-2026-12479
  • Name: Keras - Path Traversal
  • Description: A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations.
  • Impact: Attackers can write or create files outside intended directories, potentially leading to arbitrary file system modification.
  • Remediation: Update to the latest version of Keras where this issue is fixed.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Epss score: 0.00362
  • Epss percentile: 0.30349
  • Assignee: [email protected]
  • Published at: 2026-06-22T16:16:33Z
  • Age in days: 155
  • Modified at: 2026-10-25T23:10:00Z
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12479
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743nvd

Products

ProductAffectedPlatform boundSourcesUrl
keras:keras<= latestnocna_alias/v1/products/keras/keras

Projects

RepositoryLink kindsIndexedUrl
keras-team/kerascommit, package, pull, 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