AI / ML
CVE-2026-12484 high CVSS 7.8

Unsafe Deserialization in keras (CVE-2026-12484)

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メソッドの使用によって発生し、任意のコードが実行される可能性があります。

❓ What is the problem

kerasのバージョン3.15.0における不適切なデシリアライズの脆弱性。

📍 Affected scope

keras.layers.TorchModuleWrapper.from_configメソッド。

🔥 Severity

不適切なデシリアライズにより任意のコードが実行可能で、深刻な被害を引き起こす可能性がある。

🔧 How to fix

安全なデシリアライズを保証するために、Kerasのセーフモードを積極的に使用する。

🛡️ Workaround

可能であれば、安全モードを有効にしてメソッドを呼び出す。

🔍 Detection

不審なKerasレイヤー設定ファイルを確認し、攻撃者が制御する可能性のあるデータを扱う際は警戒する。

Affected packages

pip keras
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.15.0"}]}]
PyPI keras
[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"3.15.0"}]}]

Fix status by distribution

Fixed packages published by each distribution for this CVE

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details