CVE-2024-12029
CRITICAL 9.8CVSS 3.0InvokeAI Deserialization of Untrusted Data vulnerability
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.
- Published
- 20 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Deferred
- Weakness
- CWE-502
- Also known as
- GHSA-mcrp-whpw-jp68PYSEC-2025-9
- Sources
- NVDJSONOSV GHSA-mcrp-whpw-jp68JSONOSV PYSEC-2025-9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | invokeai | >= 5.3.1, < 5.4.3rc2 | 5.4.3rc2 |
| OSV | PyPI | invokeai | >= 5.3.1, < 5.4.3rc1 | 5.4.3rc1 |
References
- https://github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e · WEB, FIX
- https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-12029 · ADVISORY
- https://github.com/invoke-ai/InvokeAI/commit/ed46acee79460189b38c164321b14bdfbf3073c9 · WEB
- https://github.com/invoke-ai/InvokeAI · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/invokeai/PYSEC-2025-9.yaml · WEB
- https://github.com/advisories/GHSA-mcrp-whpw-jp68 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Mar 2025)