Skip to content

huntr

keras-team/keras

Every publicly disclosed report for keras-team/keras and what kind of bugs they were.

disclosed reports
10
most reported class
Path traversal
bug classes found
4
first disclosure
2025
Find keras-team/keras on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what keras-team/keras chose to make public.

Info disclosure

Keras: HDF5 links can disclose local file contents

Keras versions up to 3.14.0 mishandle HDF5 ExternalLinks in model files, so loading a malicious .h5, .weights.h5 or .keras file can read files from the victim's local filesystem. An attacker could disclose sensitive local file contents through the loaded model or the file editor.

keras-team/keras

Medium
RCE

Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data

The TorchModuleWrapper.from_config method loads PyTorch pickle data with weights_only set to false unless an ambient safe mode is active, so a crafted layer configuration can trigger unsafe deserialisation. An attacker who can supply an untrusted Keras layer configuration could therefore achieve arbitrary code execution.

keras-team/keras

High
Path traversal

Keras: tar extraction permits symlink-based path traversal

The tar extraction validation in Keras does not apply the same path check to symlink entries as it does to regular files, so a crafted archive can create symlinks pointing outside the extraction directory. An attacker could then use those symlinks to read or overwrite files outside the intended location.

keras-team/keras

Low
RCE

Keras: Lambda deserialization can bypass safe mode and execute code

The Lambda layer deserialization guard in Keras fails to block unsafe deserialization when safe_mode is None, which is the default outside a SafeModeScope. An attacker can supply a crafted config to execute arbitrary code via marshal bytecode.

keras-team/keras

High
Info disclosure

Keras: HDF5 virtual datasets can disclose local files

Keras failed to check whether an HDF5 dataset was virtual, so a crafted model archive could reference external HDF5 files on the victim's filesystem. Loading the model would transparently read those files, potentially disclosing local information.

keras-team/keras

Medium
Path traversal

Keras: DiskIOStore permits path traversal through crafted layer names

The DiskIOStore.make method in Keras 3.14.0 builds directory paths from user-supplied layer names without blocking parent-directory sequences. An attacker could craft a malicious Keras model that, when saved or loaded, writes files or creates directories outside the intended temporary working directory.

keras-team/keras

Medium
Path traversal

Keras archive extraction utilities allow path traversal and arbitrary file writes

Keras archive extraction utilities validated member paths against the current working directory instead of the extraction destination, allowing path traversal. An attacker could write files outside the intended directory, potentially overwriting configuration files or injecting code.

keras-team/keras

High
RCE

Keras has an untrusted deserialization vulnerability

The TFSMLayer class in Keras 3.13.0 loads attacker-controlled TensorFlow SavedModels during deserialisation of .keras models even when safe_mode is enabled. An attacker could achieve arbitrary code execution during model inference under the victim's privileges.

keras-team/keras

High
Path traversal

Keras Directory Traversal Vulnerability

Keras's get_file() function with extract=True uses tarfile.extractall() without the filter='data' parameter, allowing a malicious tar archive to bypass path filtering via a PATH_MAX symlink resolution bug and write files outside the intended extraction directory. An attacker could achieve arbitrary file write on the system.

keras-team/keras

High