Technical impact
Guard Core, the API security core engine used by FastAPI‑Guard, FlaskAPI Guard, and DjAPI Guard adapters, contains a quadratic ReDoS flaw in its built‑in penetration detection pattern. The flaw arises because the pattern.search call is performed without a timeout limiter, causing excessive computation when scanning strings with many opening braces. An attacker can trigger this issue with a single unauthenticated request that does not even match the detector, leading the shared asyncio event loop to freeze and block all application endpoints. The result is a denial‑of‑service condition where legitimate traffic is unable to reach the API handlers.
Affected Systems
The affected product is Guard Core, specifically versions from 3.5.0 up to 3.12.x. This vulnerability is present in the guard_core/handlers/suspatterns_handler.py module, which is used by the FastAPI‑Guard, FlaskAPI Guard, and DjAPI Guard adapters that rely on SecurityConfig’s default penetration detection and enhanced mode settings. All systems running Guard Core within this version range are impacted, regardless of whether custom patterns are employed.
Risk and Exploitability
The CVSS score of 7.5 indicates a high severity, and while the EPSS score is not available, the flaw’s nature—an unbounded regular expression that can be triggered by simple input—suggests it could be abused with moderate effort. The vulnerability is not listed in the CISA KEV catalog, indicating no confirmed exploitation, but the lack of a timeout makes it theoretically exploitable via network requests to any exposed Guard Core instance. The likely attack vector is through ordinary HTTP requests to the protected endpoints; an unauthenticated attacker can send the crafted input and cause the server to freeze.