CVE-2024-12029
InvokeAI Deserialization of Untrusted Data vulnerability
9.8
CRITICAL
CVSS 3.1
EPSS 44.2%
Description
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.
How to fix CVE-2024-12029
To remediate CVE-2024-12029, upgrade the affected package to a fixed version below.
- —upgrade to 5.4.3rc2 or later
- —upgrade to 756008dc5899081c5aa51e5bd8f24c1b3975a59e or later
Is CVE-2024-12029 being exploited?
Moderate — EPSS is 44.2%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (2)
- >= 5.3.1, < 5.4.3rc2
- from 0, < 756008dc5899081c5aa51e5bd8f24c1b3975a59e | >= 5.3.1, < 5.4.3rc1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |