InvokeAIGHSA-mcrp-whpw-jp68
InvokeAI Deserialization of Untrusted Data vulnerability
Critical9.8CVE-2024-12029 · Published Mar 21, 2025 · updated May 20, 2025
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
| Package | Affected | Fixed in |
|---|---|---|
| invokeai PyPI | >= 5.3.1, < 5.4.3rc2 | 5.4.3rc2 |
Details and references
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-502
- Also known as
- CVE-2024-12029, PYSEC-2025-9
- nvd.nist.gov/vuln/detail/CVE-2024-12029
- github.com/invoke-ai/InvokeAI/commit/ed46acee79460189b38c164321b14bdfbf3073c9
- github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e
- github.com/invoke-ai/InvokeAI
- github.com/pypa/advisory-database/tree/main/vulns/invokeai/PYSEC-2025-9.yaml
- huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3
More InvokeAI advisories
All InvokeAI| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 182025 | InvokeAI has External Control of File Name or Path | Critical9.8 | 6.7.0 |
| Mar 202025 | InvokeAI Arbitrary File Deletion vulnerability | Critical9.1 | 5.3.0rc1 |
| Mar 202025 | InvokeAI Uncontrolled Resource Consumption vulnerability | High7.5 | No fix yet |
| Mar 202025 | InvokeAI has Denial of Service (DoS) vulnerability in `/api/v1/images/upload` | High7.5 | No fix yet |