Summary
Vulnerability in keras (CVE-2026-12484). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 3.15.0 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Keras の TorchModuleWrapper.from_config メソッドに、信頼できないPyTorch のpickle データを安全でない方法で読み込む問題があり、任意のコードを実行される恐れがあります。影響を受けるのは Keras 3.15.0 より前の版で、3.15.0 で修正されています。3.15.0 以降へ更新してください。
kerasのバージョン3.15.0における不適切なデシリアライズの脆弱性。
keras.layers.TorchModuleWrapper.from_configメソッド。
不適切なデシリアライズにより任意のコードが実行可能で、深刻な被害を引き起こす可能性がある。
安全なデシリアライズを保証するために、Kerasのセーフモードを積極的に使用する。
可能であれば、安全モードを有効にしてメソッドを呼び出す。
不審なKerasレイヤー設定ファイルを確認し、攻撃者が制御する可能性のあるデータを扱う際は警戒する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipkeras |
< 3.15.0→ 3.15.0 |
3.15.0 |
| PyPIkeras |
≥ 3.13.0, < 3.15.0→ 3.15.0 |
3.15.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-12484 keras No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-12484 keras No fixed version in this record
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
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