CVE-2024-12029 json
Remote Code Execution via Model Deserialization in invoke-ai/invokeai
published last yr. modified 4mo ago also GHSA-mcrp-whpw-jp68 , PYSEC-2025-9 , EUVD-2025-7245
- cvss
- 9.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.0%
- EPSS 6.0% chance of exploitation in 30 days, percentile 93%
- public exploits
- 1
- Metasploit
Summary
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.
Patch / fix
- pypi invokeai 5.4.3rc1, 5.4.3rc2
- invoke-ai invoke-ai/invokeai 5.4.3
Is CVE-2024-12029 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit exploit/linux/http/invokeai_rce_cve_2024_12029)
- Published
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
5.98% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- Metasploit exploit/linux/http/invokeai_rce_cve_2024_12029 InvokeAI RCE metasploit exploit, excellent rank, 2025-02-07
- huntr.com https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | invokeai | >=5.3.1, <5.4.3rc2 >=5.3.1, <5.4.3rc1 |
5.4.3rc2 5.4.3rc1 |
Affected products
- invoke-ai invoke-ai/invokeai
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e
web, patch
-
github.com
/invoke-ai/InvokeAI/commit/ed46acee79460189b38c164321b14bdfbf3073c9
web
-
huntr.com
/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3
exploit, web
-
nvd.nist.gov
/vuln/detail/CVE-2024-12029
advisory
-
github.com
/invoke-ai/InvokeAI
package
-
github.com
/pypa/advisory-database/tree/main/vulns/invokeai/PYSEC-2025-9.yaml
web
-
github.com
/advisories/GHSA-mcrp-whpw-jp68
advisory
Sources
- CVE List CVE-2024-12029
- GitHub Advisory GHSA-mcrp-whpw-jp68
- NVD CVE-2024-12029
- OSV PYSEC-2025-9
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.