---
title: "CVE-2024-12029: InvokeAI Deserialization of Untrusted Data vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-12029/
description: "CVE-2024-12029 (InvokeAI (PyPI)): A remote code execution vulnerability exists in invoke-ai/invokeai versions 5.3.1 through 5.4.2 via the…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-03-20
date_modified: 2025-05-20
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-12029"
kev: false
cvss: 9.8
epss: 0.05983
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-12029: InvokeAI Deserialization of Untrusted Data vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 6.0% , percentile 93: FIRST’s model estimates a 6.0% chance of exploitation activity in the next 30 days, higher than 93% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes InvokeAI (PyPI) >= 5.3.1, < 5.4.3rc2, fixed in 5.4.3rc2 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- PyPI `InvokeAI` >= 5.3.1, < 5.4.3rc2 → fixed: 5.4.3rc2

## Affected products (CVE record)

- invoke-ai invoke-ai/invokeai: unspecified < 5.4.3

## Severity

- @huntr_ai CVSS 3.0: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 5.98% probability of exploitation activity in the next 30 days; percentile 93.

## Sources

- [GitHub Advisory GHSA-mcrp-whpw-jp68](https://github.com/advisories/GHSA-mcrp-whpw-jp68)
- [CVE.org record CVE-2024-12029](https://www.cve.org/CVERecord?id=CVE-2024-12029)
- [NVD entry CVE-2024-12029](https://nvd.nist.gov/vuln/detail/CVE-2024-12029)
- [huntr.com](https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3)
- [github.com](https://github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/invokeai/PYSEC-2025-9.yaml)
- [github.com](https://github.com/invoke-ai/InvokeAI/commit/ed46acee79460189b38c164321b14bdfbf3073c9)

---
Source page: https://erroneo.us/security/cve/CVE-2024-12029/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
