Quick answers
- Is CVE-2024-11042 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-11042 being exploited in the wild.
- How severe is CVE-2024-11042?
- Critical severity, with a CVSS score of 9.1, published 20 March 2025.
- Which products and versions are affected?
- InvokeAI all versions before 5.3.0rc1; invokeai (PyPI) < 5.3.0rc1, ECOSYSTEM:introduced=0,fixed=5.3.0rc1.
- Is there a fix for CVE-2024-11042?
- Yes. invokeai (PyPI): upgrade to 5.3.0rc1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-11042 attacked?
- It is attacked over the network.
- Am I affected by CVE-2024-11042?
- Check whether you run InvokeAI or invokeai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- invokeai (PyPI): upgrade to 5.3.0rc1 or later
pip install "invokeai>=5.3.0rc1"
Technical details
The vulnerability exists in the POST /api/v1/images/delete endpoint in InvokeAI versions prior to 5.3.0rc1, which fails to properly validate file paths before deletion. An attacker can use directory traversal sequences (../) to escape the intended image directory and delete arbitrary files on the system, including SSH keys, SQLite databases, and configuration files. No authentication is required and the attack is triggered over the network with a simple HTTP request. The vulnerability impacts both the confidentiality of stored data and availability of the application. A patch was released in version 5.3.0rc1 and backported to version 5.2.0.
Affected products
- InvokeAI InvokeAI all versions before 5.3.0rc1
Identifiers
- CVE-2024-11042
- GHSA-227r-w5j2-6243
- PYSEC-2026-358
Timeline
- 2025-03-20: disclosed
- 2025-03-20: patched: Fixed in version 5.3.0rc1