Skip to content
Fencer Intel
critical 9.8

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 Fencer

Timeline

  1. First public exploit (Metasploit exploit/linux/http/invokeai_rce_cve_2024_12029)
  2. 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

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

Sources

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.