Advisory

PYSEC-2026-358

Also known as: CVE-2024-11042, GHSA-227r-w5j2-6243

Summary

InvokeAI Arbitrary File Deletion vulnerability

Details

In invoke-ai/invokeai version v5.0.2, the web API POST /api/v1/images/delete is vulnerable to Arbitrary File Deletion. This vulnerability allows unauthorized attackers to delete arbitrary files on the server, potentially including critical or sensitive system files such as SSH keys, SQLite databases, and configuration files. This can impact the integrity and availability of applications relying on these files.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:22 UTC

Affected packages and fixes

invokeai

PyPI · All systems

Affected

  • introduced 0, fixed 5.3.0rc1 (ecosystem)

Fixed versions

5.3.0rc1

Fix

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

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