Description
Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Keras | Keras | 3.11.0 – < 3.11.3 | 3.11.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | keras | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | keras | No fix yet | — |
| Ubuntu 18.04 LTS | keras | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | keras | >= 3.11.0, < 3.11.3 | 3.11.3 | GHSA-cvhh-q5g5-qprp |
Advisories 1
- WID-SEC-2025-2673 Red Hat OpenShift (Trusted Artifact Signer): Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Nov 25, 2025