Skip to main content
CVE-2024-10821VulnerabilityPublished Updated

CVE-2024-10821: invoke-ai/invokeai · Loop with Unreachable Exit Condition

Affects invoke-ai/invokeaiSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% 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:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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-26.

What to do

Affected software

ProductAffectedFixed in
GitHubinvoke-ai/invokeaipkg:github/invoke-ai/invokeaiOther threatsAffected
  • =5.0.1
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. Immediate mitigation should focus on implementing strict input validation on multipart request boundaries to detect and reject malformed or excessively long boundary strings before processing. 2. Deploy rate limiting and request throttling on the /api/v1/images/upload endpoint to reduce the risk of resource exhaustion from repeated malicious requests. 3. Monitor server resource utilization and configure alerts for unusual CPU or memory spikes indicative of an ongoing attack. 4. Isolate the Invoke-AI service in a container or sandboxed environment with resource limits (CPU, memory) to prevent system-wide impact. 5. If possible, restrict access to the upload endpoint via network controls such as IP whitelisting or VPN access to reduce exposure. 6. Stay updated with Invoke-AI vendor communications for official patches or security updates addressing this vulnerability and apply them promptly once available. 7. Consider implementing Web Application Firewall (WAF) rules to detect and block suspicious multipart boundary patterns. 8. Conduct regular security assessments and penetration tests focusing on multipart request handling to identify similar weaknesses.

Description

A Denial of Service (DoS) vulnerability in the multipart request boundary processing mechanism of the Invoke-AI server (version v5.0.1) allows unauthenticated attackers to cause excessive resource consumption. The server fails to handle excessive characters appended to the end of multipart boundaries, leading to an infinite loop and a complete denial of service for all users. The affected endpoint is `/api/v1/images/upload`.

References

Community reviews

Loading reviews…