Skip to main content

Loop with Unreachable Exit Condition ('Infinite Loop')

CVE-2024-10821

Severity High
Score 7.5/10

Summary

A Denial of Service (DoS) vulnerability in the multipart request boundary processing mechanism of the Invoke-AI server 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 (DoS) for all users. The affected endpoint is `/api/v1/images/upload`. This issue affects versions prior to 5.13.0rc2.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-835 - Loop with Unreachable Exit Condition

Loops with multiple exits and flags detract from the quality of an application. They tend to make control structures difficult to understand, and introduce the risk of non-termination and other structural problems. The vulnerability “loop with unreachable exit condition” enables attackers to exploit this flaw, leading to denial of service.

Advisory Timeline

  • Published