CVE-2024-12029

CRITICALCVSS 9.8/10EPSS 5.34%

Last modified

CVE-2024-12029 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 5.34% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.0
9.8/10

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
5.34%

91.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

References

Timeline

Published
Last Modified
Status
Deferred

Frequently Asked Questions

What is CVE-2024-12029?
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 severe is CVE-2024-12029?
CVE-2024-12029 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 5.34% probability of exploitation in the next 30 days.
How do I fix CVE-2024-12029?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-12029?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST