NIXPKGS-2025-0003 published on 30 Oct 2025 CVE-2025-9905 updated 2 months, 3 weeks ago by @LeSuisse Activity log Created automatic suggestion 3 months, 3 weeks ago @Erethon dismissed 2 months, 4 weeks ago @Erethon marked as untriaged 2 months, 4 weeks ago @LeSuisse removed package python312Packages.tf-keras 2 months, 3 weeks ago @balsoft added package python312Packages.tf-keras 2 months, 3 weeks ago @balsoft dismissed 2 months, 3 weeks ago @LeSuisse accepted as draft 2 months, 3 weeks ago @LeSuisse removed package python312Packages.tf-keras 2 months, 3 weeks ago @LeSuisse published on GitHub 2 months, 3 weeks ago Arbitary Code execution in Keras load_model() The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives. Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility. Affected products keras =<3.11.2 Matching in nixpkgs pkgs.python312Packages.keras Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch nixos-unstable 3.11.3 nixpkgs-unstable 3.11.3 nixos-unstable-small 3.11.3 nixos-25.05 3.9.2 nixos-25.05-small 3.9.2 nixpkgs-25.05-darwin 3.9.2 Package maintainers: 1 @GaetanLepage Gaetan Lepage <gaetan@glepage.com>
CVE-2025-9905 updated 2 months, 3 weeks ago by @LeSuisse Activity log Created automatic suggestion 3 months, 3 weeks ago @Erethon dismissed 2 months, 4 weeks ago @Erethon marked as untriaged 2 months, 4 weeks ago @LeSuisse removed package python312Packages.tf-keras 2 months, 3 weeks ago @balsoft added package python312Packages.tf-keras 2 months, 3 weeks ago @balsoft dismissed 2 months, 3 weeks ago @LeSuisse accepted as draft 2 months, 3 weeks ago @LeSuisse removed package python312Packages.tf-keras 2 months, 3 weeks ago @LeSuisse published on GitHub 2 months, 3 weeks ago Arbitary Code execution in Keras load_model() The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives. Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility. Affected products keras =<3.11.2 Matching in nixpkgs pkgs.python312Packages.keras Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch nixos-unstable 3.11.3 nixpkgs-unstable 3.11.3 nixos-unstable-small 3.11.3 nixos-25.05 3.9.2 nixos-25.05-small 3.9.2 nixpkgs-25.05-darwin 3.9.2 Package maintainers: 1 @GaetanLepage Gaetan Lepage <gaetan@glepage.com>
pkgs.python312Packages.keras Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch nixos-unstable 3.11.3 nixpkgs-unstable 3.11.3 nixos-unstable-small 3.11.3 nixos-25.05 3.9.2 nixos-25.05-small 3.9.2 nixpkgs-25.05-darwin 3.9.2