Advisory

PYSEC-2025-9

Also known as: CVE-2024-12029, GHSA-mcrp-whpw-jp68

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-03-20 10:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

invokeai

PyPI · All systems

Affected

  • introduced 5.3.1, fixed 5.4.3rc1 (ecosystem)

Fixed versions

5.4.3rc1

Fix

  • Fixed version 5.4.3rc1
    pip install --upgrade invokeai==5.4.3rc1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences