CRITICAL9.8
PYSEC-2026-369
Keras code injection vulnerability
Quick fix
PYSEC-2026-369 — keras: upgrade to the fixed version with the command below.
pip install --upgrade 'keras>=2.13.1rc0'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3660[ADVISORY]
- https://github.com/keras-team/keras[PACKAGE]
- https://github.com/keras-team/keras/compare/r2.12...r2.13[WEB]
- https://kb.cert.org/vuls/id/253266[WEB]
- https://www.kb.cert.org/vuls/id/253266[WEB]
- https://pypi.org/project/keras[PACKAGE]
- https://github.com/advisories/GHSA-x4wf-678h-2pmq[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/keras"]}'