Quadratic ReDoS in Guard Core built-in detection pattern freezes event loop
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-1333.
Summary
Guard Core from 3.5.0 before 3.13.0 runs its built-in penetration-detection patterns through a direct regex search instead of the timeout-protected matcher used for custom patterns. The built-in template-injection pattern has an unbounded expression that scales quadratically on repeated opening braces (CWE-1333). An unauthenticated remote attacker can send one crafted request to block the shared asyncio event loop, stalling all application endpoints, and the request can complete without triggering a detection or ban counter.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
Guard Core is an API security core engine for the FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard adapters. From 3.5.0 until 3.13.0, built-in penetration-detection patterns in guard_core/handlers/suspatterns_handler.py execute through a direct pattern.search(content) call instead of the timeout-protected create_safe_matcher() path used for custom patterns. The built-in template-injection detector contains an unbounded expression with quadratic behavior when scanning repeated opening braces. Because penetration detection and enhanced mode are enabled by a stock SecurityConfig, an unauthenticated request can block the shared asyncio event loop, affecting all application endpoints. The triggering input does not produce a detection match, so the request can complete without incrementing ban counters or being recorded as suspicious. This issue is fixed in version 3.13.0.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade rennf93 guard-core to version 3.13.0, which fixes the issue. The sources list no other fixed version for guard-core.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA guard-core (rennf93) Fixed in 3.13.0
Timeline
- 2026-11-16 Threatist record created from CVE-2026-129302
References
More rennf93 vulnerabilities
- TI-2025-34178 fastapi-guard patch contains bypassable RegEx CVSS 4.0HIGH 7.8
- TI-2025-29447 FastAPI Guard Remote Header Injection via X-Forwarded-For Manipulation CVSS 3.1HIGH 7.5
- TI-2025-33483 ReDoS in fastapi-guard's penetration attempts detector CVSS 4.0MEDIUM 6.9
- TI-2026-92274 Guard Core whitespace collapsing disables CRLF detectors in default mode CVSS 3.1LOW 3.7
- TI-2026-92275 Unvalidated X-Forwarded-For value used in Redis keys in Guard Core CVSS 3.1MEDIUM 5.4
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences