CVE-2024-12029

published 20 Mar 2025 · updated 20 Mar 2025

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

9.8CriticalCVSS 9.8EPSS 6%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 6%. Fixed in 5.4.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
invoke-ai<5.4.35.4.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-12029 severity on Zeptric[![CVE-2024-12029](https://zeptric.io/badge/cve/CVE-2024-12029.svg)](https://zeptric.io/cve/CVE-2024-12029)