CVE-2024-10821 Denial of Service (DoS) in invoke-ai/invokeai

High 7.5 Published Updated

Unauthenticated attackers can cause a complete denial of service by sending malformed multipart requests to the image upload endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-10821?

CVE-2024-10821 is a high-severity denial of service vulnerability in invoke-ai/invokeai, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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`.

Weakness: CWE-835

Which versions are affected by CVE-2024-10821?

3 open source packages ship an affected version, including invokeai and InvokeAI.

PackageAffectedFixed in
invokeai PyPIAll versions to 5.0.2None
invokeai PyPIAll versions to 5.0.2None
InvokeAI PyPIAll versions to 5.0.2None

How do I fix CVE-2024-10821?

No fix has been published for CVE-2024-10821 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-10821 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10821 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-6f6x-f56q-5xgv, PYSEC-2026-1466.

Is CVE-2024-10821 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free