Vulnerabilities in pkg:pypi/InvokeAI
PACKAGECVE-2024-12029 is a CRITICAL (CVSS 9.8) invokeai deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting InvokeAI libraries in the PyPI ecosystem. The issue involves invokeai deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 5.4.3rc2.
pkg:pypi/InvokeAI
Vulnerability advisories affecting package pkg:pypi/InvokeAI. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mcrp-whpw-jp68 | CVE-2024-12029 | CRITICAL | InvokeAI Deserialization of Untrusted Data vulnerability |
| GHSA-227r-w5j2-6243 | CVE-2024-11042 | CRITICAL | InvokeAI Arbitrary File Deletion vulnerability |
| GHSA-ffh5-w482-c7m5 | CVE-2024-11043 | HIGH | InvokeAI Uncontrolled Resource Consumption vulnerability |
| GHSA-6f6x-f56q-5xgv | CVE-2024-10821 | HIGH | InvokeAI has Denial of Service (DoS) vulnerability in `/api/v1/images/upload` |
CVE-2024-12029 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-12029
To remediate this vulnerability, upgrade all affected InvokeAI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install InvokeAI>=5.4.3rc2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show InvokeAI
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-12029, inspect your installed packages using pip:
pip show InvokeAI
Analyze the terminal output to locate any version of InvokeAI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.3rc2), your application is affected.
Note: The pip show InvokeAI command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In InvokeAI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-12029 Affected InvokeAI Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
InvokeAI
|
PyPI |
≥ 5.3.1
< 5.4.3rc2
|
5.4.3rc2
|
References
Frequently Asked Questions
What is CVE-2024-12029?
Which InvokeAI versions are affected?
What version fixes CVE-2024-12029?
Is InvokeAI affected?
What is the CVSS score of CVE-2024-12029?
What CWE is associated with CVE-2024-12029?
How can I check PyPI dependencies for CVE-2024-12029?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mcrp-whpw-jp68",
"modified" : "2025-05-20T17:37:16Z",
"published" : "2025-03-21T15:32:15Z",
"aliases" : [ "CVE-2024-12029" ],
"summary" : "InvokeAI Deserialization of Untrusted Data vulnerability",
"details" : "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.3rc2.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "InvokeAI"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.1"
}, {
"fixed" : "5.4.3rc2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-12029"
}, {
"type" : "WEB",
"url" : "https://github.com/invoke-ai/InvokeAI/commit/ed46acee79460189b38c164321b14bdfbf3073c9"
}, {
"type" : "WEB",
"url" : "https://github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/invoke-ai/InvokeAI"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/invokeai/PYSEC-2025-9.yaml"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-21T15:32:15Z",
"nvd_published_at" : "2025-03-20T10:15:26Z"
}
}