Skip to content
DoS Disclosed report Intermediate CVE-2024-10821

InvokeAI has Denial of Service (DoS) vulnerability in `/api/v1/images/upload`

The InvokeAI server fails to properly handle multipart request boundaries with excessive trailing characters, causing an infinite loop. An unauthenticated attacker can exploit this to consume excessive resources and deny service to all users.

invoke-ai/invokeai

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-6f6x-f56q-5xgv, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the multipart boundary parser does not limit or properly handle extra characters after the boundary delimiter, causing an infinite loop.

Impact

An unauthenticated attacker could cause a complete denial of service for all users by sending a crafted multipart request.

What the attacker needed

Unauthenticated access to the upload endpoint

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A denial-of-service (DoS) attack makes a service unavailable to legitimate users. Here, the server gets stuck in an endless loop when it receives a specially crafted file upload request, so it cannot respond to anyone else.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from invoke-ai/invokeai

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.