Browse / AI Framework and Platform Flaws / CVE-2024-10821
InvokeAI has Denial of Service (DoS) vulnerability in `/api/v1/images/upload`
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- invokeai (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.6% chance of exploitation in 30 days
How it works, in short
Extra characters after a multipart boundary make the upload endpoint's parser loop forever, halting service for all users. (Our summary, written by a model. The source text is below.)
Details
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
- https://nvd.nist.gov/vuln/detail/CVE-2024-10821
- https://github.com/invoke-ai/InvokeAI
- https://github.com/invoke-ai/InvokeAI/blob/807f458f13e7693ada2fb929c2d513950611fe9c/invokeai/app/api/routers/images.py#L29
- https://huntr.com/bounties/0ac24835-c4c0-4f11-938a-d5641dfb80b2
Source: GitHub Advisory Database, used under CC BY 4.0.