CVE-2026-129302
High 7.5No known exploitationFix availableGuard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single request
Vendor advisory: GHSA-r7hm-rjvg-xx7j
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 29% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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.
Weakness: CWE-400, CWE-1333
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| pip | guard-core | from 3.5.0 up to and including 3.12.0 | 3.13.0 | GitHub Advisory Database |
| rennf93 | guard-core | >= 3.5.0, < 3.13.0 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4 (opens in a new tab)x_refsource_misc
- https://github.com/Guard-Core/guard-core/pull/68 (opens in a new tab)x_refsource_misc
- https://github.com/Guard-Core/guard-core/releases/tag/3.13.0 (opens in a new tab)x_refsource_misc
- https://github.com/Guard-Core/guard-core/security/advisories/GHSA-r7hm-rjvg-xx7j (opens in a new tab)x_refsource_confirm
- GitHub Advisory GHSA-r7hm-rjvg-xx7j (opens in a new tab)github-advisory