Keras code injection vulnerability
CVE-2024-3660 · GHSA-x4wf-678h-2pmq · published 2024-04-16 · updated 2024-08-02
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.7%
- Fixed in
- 2.13.1rc0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
A arbitrary code injection vulnerability in TensorFlow's Keras framework (<2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the application.
Upgrade keras to 2.13.1rc0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| keras | PyPI | < 2.13.1rc0 | 2.13.1rc0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalKeras framework vulnerable to deserialization of untrusted datakeras
- HighKeras: TorchModuleWrapper can deserialize unsafe PyTorch pickle datakeras, keras
- HighKeras: Lambda deserialization can bypass safe mode and execute codekeras, keras
- HighKeras archive extraction utilities allow path traversal and arbitrary file writeskeras
- HighKeras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFileEditor)keras, keras
- HighKeras has an untrusted deserialization vulnerabilitykeras
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.