Skip to content

CVE-2024-12029 Remote Code Execution via Model Deserialization in invoke-ai/invokeai

CriticalCVSS 9.8 EPSS 6.0% Framework module
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
invoke-ai/invokeai < 5.4.3 5.4.3 Fixed
pypi invokeai(PyPI) = 5.3.1; = 5.4.0; = 5.4.1; = 5.4.1rc1 +6 more 5.4.3rc1, 5.4.3rc2 Fixed

Affected products

ProductAffected versionsFixed in
pypi invokeai(PyPI) >= 5.3.1, < 5.4.3rc2 5.4.3rc2
pypi invokeai(PyPI) = 5.3.1 No fix listed
pypi invokeai(PyPI) = 5.4.0 No fix listed
pypi invokeai(PyPI) = 5.4.1 No fix listed
pypi invokeai(PyPI) = 5.4.1rc1 No fix listed
pypi invokeai(PyPI) = 5.4.1rc2 No fix listed
pypi invokeai(PyPI) = 5.4.2 No fix listed
pypi invokeai(PyPI) = 5.4.2rc1 No fix listed
pypi invokeai(PyPI) = 5.4.3rc1 No fix listed
pypi invokeai(PyPI) >= 5.3.1, < 5.4.3rc1 5.4.3rc1
invoke-ai/invokeai < 5.4.3 5.4.3

References