AI and data stack advisories

Severe, 6 weeks1498Projects326

1498 severe, 6 weeks · 326 projects

InvokeAIGHSA-mcrp-whpw-jp68

InvokeAI Deserialization of Untrusted Data vulnerability

InvokeAI

CVE-2024-12029 · Published Mar 21, 2025 · updated May 20, 2025

Critical9.8
Fix: upgrade to 5.4.3rc2 or later
GitHub advisory

A remote code execution vulnerability exists in invoke-ai/invokeai versions 5.3.1 through 5.4.2 via the /api/v2/models/install API. The vulnerability arises from unsafe deserialization of model files using torch.load without proper validation. Attackers can exploit this by embedding malicious code in model files, which is executed upon loading. This issue is fixed in version 5.4.3rc2.

Affected versions

PackageAffectedFixed in
invokeai
PyPI
>= 5.3.1, < 5.4.3rc25.4.3rc2
Details and references

More InvokeAI advisories

All InvokeAI