cve.bz

CVE-2024-12029 invoke-ai invoke-ai/invokeai: Deserialization of Untrusted Data

9.8 criticalExploitEPSS 6.0%Fix available

Critical (9.8) in invoke-ai invoke-ai/invokeai. EPSS 6.0% estimated probability of exploitation activity in the next 30 days. Fixed in invokeai 5.4.3rc1, 5.4.3rc2.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.0% (unchanged from 6.0% a week ago; 6.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-03-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • invokeai (PyPI): fixed in 5.4.3rc2, 5.4.3rc1

Ask an AI about this CVE

Show the promptExplain CVE-2024-12029 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-12029?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-12029?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-12029 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
invoke-ai/invokeaibefore 5.4.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mcrp-whpw-jp68PyPIinvokeai>=5.3.1 <5.4.3rc25.4.3rc2
PYSEC-2025-9PyPIinvokeai>=5.3.1 <5.4.3rc15.4.3rc1

Public exploits

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON