CVE-2024-12029invoke-ai/invokeai
Critical 9.8 No auth needed
Follow: this CVE · invoke-ai · invoke-ai/invokeai We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 5.7% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Mar 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for invoke-ai/invokeai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | invokeai |
≥ 5.3.1 < 5.4.3rc2 |
5.4.3rc2 |
pip install "invokeai>=5.4.3rc2" |
| PyPI | invokeai |
≥ 5.3.1 < 5.4.3rc1 |
5.4.3rc1 |
pip install "invokeai>=5.4.3rc1" |
Per OSV / GitHub Advisories (GHSA-mcrp-whpw-jp68, PYSEC-2025-9). Check the version in your lockfile before upgrading.
Affected products
- invoke-ai · invoke-ai/invokeai
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.