Browse / Unsafe Model Loading and Supply Chain / CVE-2024-3660
Keras code injection vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- keras (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.7% chance of exploitation in 30 days
How it works, in short
Loading a crafted Keras model file lets embedded code run with the permissions of the host application. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3660
- https://github.com/keras-team/keras
- https://github.com/keras-team/keras/compare/r2.12...r2.13
- https://kb.cert.org/vuls/id/253266
- https://www.kb.cert.org/vuls/id/253266
Source: GitHub Advisory Database, used under CC BY 4.0.