~ / search / GHSA-mcrp-whpw-jp68

GHSA-mcrp-whpw-jp68

InvokeAI Deserialization of Untrusted Data vulnerability

Source: GitHub Advisory Database (reviewed) Critical CVE-2024-12029

Packages

EcosystemPackageAffectedFixed in
PyPI InvokeAI >= 5.3.1, < 5.4.3rc2 5.4.3rc2

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.