CVE-2024-11042: invoke-ai/invokeai · External Control of File Name or Path
Affects invoke-ai/invokeaiSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 1.5% chance of exploitation in 30 days – higher than 75% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubinvoke-ai/invokeaipkg:github/invoke-ai/invokeaiOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediately restrict network access to the POST /api/v1/images/delete endpoint by implementing firewall rules or API gateway controls to allow only trusted internal users or systems. 2. Apply strict input validation and sanitization on file path parameters to ensure only authorized and expected files can be deleted, using allowlists or canonical path checks. 3. Implement role-based access control (RBAC) and authentication mechanisms to prevent unauthorized API usage. 4. Monitor file system integrity with tools that detect unexpected deletions or modifications, and alert administrators promptly. 5. Regularly back up critical files such as SSH keys, databases, and configuration files to enable rapid recovery. 6. Stay informed about official patches or updates from the invoke-ai project and apply them as soon as they become available. 7. Conduct security audits and penetration tests focusing on API endpoints to identify similar vulnerabilities. 8. Consider isolating the invoke-ai service in a container or sandbox environment with limited file system permissions to minimize potential damage.
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.