Summary
Vulnerability in keras (CVE-2026-12484). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 3.15.0 or later.
Original description
The description as published by the source.
A vulnerability in keras-team/keras version 3.15.0 allows unsafe deserialization of attacker-controlled PyTorch pickle data through the public keras.layers.TorchModuleWrapper.from_config method. This method invokes torch.load(..., weights_only=False) without requiring an explicit unsafe opt-in, such as a safe_mode=False parameter. When called outside a SafeModeScope(True) context, the absence of an ambient safe mode state permits unsafe deserialization by default. This issue can lead to arbitrary code execution if untrusted Keras layer configurations are processed using this method. The vulnerability arises because the method does not enforce safe deserialization practices unless explicitly guarded by Keras safe mode.
Source: NIST National Vulnerability Database NVD GitHub Advisory
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
kerasのバージョン3.15.0において、攻撃者が制御するPyTorchのpickleデータを不適切にデシリアライズする脆弱性が発見されました。この問題は、keras.layers.TorchModuleWrapper.from_configメソッドの使用によって発生し、任意のコードが実行される可能性があります。
kerasのバージョン3.15.0における不適切なデシリアライズの脆弱性。
keras.layers.TorchModuleWrapper.from_configメソッド。
不適切なデシリアライズにより任意のコードが実行可能で、深刻な被害を引き起こす可能性がある。
安全なデシリアライズを保証するために、Kerasのセーフモードを積極的に使用する。
可能であれば、安全モードを有効にしてメソッドを呼び出す。
不審なKerasレイヤー設定ファイルを確認し、攻撃者が制御する可能性のあるデータを扱う際は警戒する。
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-12484 keras
- Ubuntu UBUNTU-CVE-2026-12484 keras
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package pypi.org
- web huntr.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com