GHSA-mcrp-whpw-jp68
GitHub Security Advisory
InvokeAI Deserialization of Untrusted Data vulnerability
✓ GitHub Reviewed
CRITICAL
Has CVE
Advisory Details
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 Packages
PyPI
InvokeAI
Affected versions:
5.3.1
(fixed in 5.4.3rc2)
Related CVEs
Key Information
9.0
/10
Dataset
Last updated: July 26, 2025 6:37 AM
Data from GitHub Advisory Database. This information is provided for research and educational purposes.