CVE-2024-12029: InvokeAI Deserialization of Untrusted Data vulnerability
CVE-2024-12029 · Severity: low · CVSS 3 · Published 2025-03-20
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.3.
Yes. invokeai (PyPI): upgrade to 5.4.3rc1, 5.4.3rc2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-12029?
Check whether you run invokeai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
invokeai (PyPI): upgrade to 5.4.3rc1, 5.4.3rc2 or later