NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-12029: InvokeAI Deserialization of Untrusted Data vulnerability

criticalCVSS 3.0 9.8GHSA-mcrp-whpw-jp68

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.

Published Mar 21, 2025 · Updated May 20, 2025

Affected packages

InvokeAI

Ecosystem
PyPI
Affected
>= 5.3.1, < 5.4.3rc2
Fixed in
5.4.3rc2
Check
pip show InvokeAI

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to zly123987.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries