keras is vulnerable to Uncontrolled Recursion
58
Medium Risk
Affected versions of this package allow loading of malicious .keras files containing crafted HDF5 metadata with extreme or overflowing tensor shapes, leading to unbounded memory allocation and potential remote denial of service. An attacker could exploit this by supplying a shape bomb that triggers recursive path handling issues or forces NumPy to allocate multi-gigabyte tensors during model loading, exhausting memory or crashing the process before validation occurs.
You are affected if you are using a version that falls within the vulnerable range.
keras is vulnerable to Uncontrolled Recursion in versions 3.0.0 - 3.13.1.
Upgrade the keras library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant