Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend unauthenticated request with repeated opening braces to any endpoint -> Quadratic built-in template regex scans input inline -> Scan blocks shared asyncio event loop -> Every host application endpoint freezes (availability loss)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No authentication, special privileges, or user interaction is required (PR:N/UI:N): the flaw is exploitable against the default configuration, where penetration detection (enable_penetration_detection=True), enhanced mode (any stock SecurityConfig passes the duck-type check), query-parameter scanning, and the 10,000-char detection window are all enabled out of the box. The specific trigger is the built-in template-injection detector regex in guard_core/handlers/suspatterns_handler.py executing via an inline pattern.search() call instead of the timeout-protected create_safe_matcher() path that is used only for custom patterns. Limiting factors: only guard-core versions 3.5.0 through 3.12.0 are affected (3.4.0 and earlier routed built-ins through the safe matcher; 3.13.0 fixes it), and impact requires a single-process asyncio deployment (fastapi-guard, flaskapi-guard async, or djapi-guard ASGI) where the detection scan shares the event loop with the application, so the host's own worker/process topology determines how completely the freeze is felt. |
| Impact | All severity signals align on a genuine, near-term availability threat. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) describes exactly what the GHSA advisory proves: an unauthenticated, network-reachable, low-complexity request that destroys availability (A:H) with no confidentiality or integrity impact. The vuln.today decision label is this_week (not act_now or emergency), consistent with a high-impact but non-RCE DoS. Exploitation maturity is high: the GHSA advisory embeds a full, self-contained proof-of-concept with reproduced measurements (1.85s loop block for a single 10,000-char value; 44s for one 256KB JSON body; 440s of blockage per 60s window from a single IP once the default rate limit is factored in), so publicly available exploit code exists. No CISA KEV listing and no EPSS score are present in the input, so there is no confirmation of active in-the-wild exploitation and no model-based probability to weigh; absence of KEV should not be read as low risk given the working PoC and default-config reachability. The one caveat to real-world priority is prevalence, not mechanism: guard-core is a niche library, so the blast radius depends entirely on how many asyncio applications embed it. The signals do not conflict - this is a real priority for anyone running an affected version, tempered only by limited deployment footprint. |
| Exploit ScenarioDerived | An attacker sends a single unauthenticated HTTP request to any endpoint of an application running guard-core 3.5.0-3.12.0 with default configuration, placing a long run of opening-brace characters (up to the default 10,000-char scan window) in a query parameter, header, or JSON string field. The built-in template-injection regex scans this input inline on the shared asyncio event loop with quadratic (O(N^2)) runtime, freezing every endpoint of the host application for seconds; a padded JSON body extends the freeze to tens of seconds. A full working PoC with reproduced output is published in the GHSA advisory, and because the payload produces no detection match, the request returns HTTP 200 with no ban-counter increment or suspicious-activity log. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Guard-core 3.5.0 through 3.12.0 lets a single unauthenticated request freeze every endpoint of an application that embeds it, because the built-in template-injection detection regex is executed through a bare inline pattern.search() on the asyncio event loop instead of the timeout-protected create_safe_matcher() path that has been reserved for custom patterns since 3.5.0. The expression's unbounded [^\}]+ gap goes quadratic on a run of repeated opening braces, so a 10,000-character scanned value costs roughly 1.85 seconds of loop time and a 256 KB JSON body carrying about 25 such string fields measured 44 seconds of continuous blockage from one request, which the reporter notes can be repeated at the stock limit of 10 requests per 60 seconds to hold the loop saturated indefinitely. Critically, the payload produces no detection match, so no ban counter increments and nothing is recorded as suspicious, and since the loop is shared with the host application (fastapi-guard, flaskapi-guard async deployments, djapi-guard ASGI), the freeze affects all endpoints rather than just guarded routes; a public proof-of-concept script with measured timings accompanies the advisory, it is not independently verified as working exploit code, and no active exploitation is confirmed (not in CISA KEV), with the vulnerability prioritized for remediation this week.
RemediationAI
Vendor-released patch: guard-core 3.13.0, published on PyPI and tagged at https://github.com/Guard-Core/guard-core/releases/tag/3.13.0; upgrade with pip install --upgrade guard-core==3.13.0 and redeploy every application embedding guard-core 3.5.0 through 3.12.0, including services running fastapi-guard, flaskapi-guard in async mode, and djapi-guard under ASGI. The fix landed via pull request https://github.com/Guard-Core/guard-core/pull/68 and commit c07239fa1c5aa93e3f179440e79dad652977d3e4, detailed in advisory https://github.com/Guard-Core/guard-core/security/advisories/GHSA-r7hm-rjvg-xx7j. The reporter's stated fix directions are to bound the quantifier in the template pattern, since excluding the delimiter or capping the gap closes the quadratic scan much as the '{%' sibling is already safe, and to route built-in patterns through the same create_safe_matcher() timeout path as custom patterns, restoring the pre-3.5.0 behaviour. The advisory does not publish a deployment-level workaround, and the reporter notes that rate limiting does not mitigate the issue because 10 requests per 60-second window at roughly 44 seconds of blockage each yields about 440 seconds of event-loop occupancy per window from a single source. The maintainers have asked reporters to install 3.13.0 and confirm resolution in the advisory discussion thread or via a new issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is classified as CWE-400 (Uncontrolled Resource Consumption) and, in the advisory's own taxonomy, CWE-1333 (Inefficient Regular Expression Complexity). The offending pattern is the built-in template-injection detector at guard_core/handlers/suspatterns_handler.py around line 519: \{\{\s*[^\}]+(?:system|exec|popen|eval|require|include)\s*\}\}. On an input of N consecutive '{' characters, each of the N-1 positions starts a potential \{\{ match attempt while [^\}]+ scans to end-of-string and backtracks, giving O(N^2) polynomial rather than exponential behaviour; the sibling '{%'-delimited pattern a few lines below is not affected because its delimiter is excluded from the character class, which is what confirms the unbounded, non-excluding gap as the defect. The execution path is the second half of the bug: in the enhanced-mode branch (which any stock SecurityConfig passes via a duck-type attribute check) only patterns whose category equals 'custom' are routed through compiler.create_safe_matcher(), which supplies an executor and timeout; all built-in patterns fall through to a direct pattern.search(content) call inside the async coroutine and therefore block the shared asyncio event loop for the entire scan. Per the advisory this is a regression introduced in 3.5.0, since guard-core 3.4.0 and earlier routed every pattern through the safe matcher in _check_regex_pattern() or, without a compiler, through _check_pattern_with_timeout with a four-worker pool and per-pattern timeout. Reachability is default: enable_penetration_detection=True, query parameters are scanned, and detection_max_content_length=10000 admits the full payload. Amplification comes from the scanner paying the cost per scanned value (each query parameter, each header, each JSON string field up to detection_max_body_inspect_bytes, default 256 KB), and the default rate_limit of 10 per 60-second window is ineffective as a control because the rate-limit check precedes suspicious_activity in the default pipeline.
Know when Guard Core gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Unauthenticated network request against default config (AV:N/AC:L/PR:N/UI:N) deterministically blocks the event loop for an availability-only impact (A:H; C:N/I:N); the process is the vulnerable component (S:U).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption), specifically regex complexity CWE-1333.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in Guard-core (versions 3.5.0 through 3.12.0) allows a single unauthenticated request to completely freeze all endpoints of any application embedding the library, causing a denial-of-service condition. This affects any organization using guard-core or its integrations (fastapi-guard, flaskapi-guard) in production, potentially halting critical services and disrupting business operations. Leadership should prioritize remediation due to the ease of exploitation and potential for prolonged outages.
No vendor-released patch identified at time of analysis. Interim mitigations include enforcing strict request size limits to prevent large payloads (e.g., limiting JSON body size below the 256 KB threshold that demonstrated 44 seconds of blockage), applying rate limiting at the reverse proxy or API gateway to cap requests per minute per source, and enabling real-time monitoring for abnormal request patterns that could indicate exploitation attempts. Additionally, isolate affected services behind a web application firewall configured to detect and block malicious payloads targeting this vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Guard Core
View allImproper input validation in Guard Core (the shared API-security engine behind FastAPI-Guard, FlaskAPI Guard and DjAPI G
Whitespace-collapse preprocessing in Guard Core 1.0.0 through 3.12.0 runs before pattern matching in the default enhance
EUVD-2026-126620
GHSA-r7hm-rjvg-xx7j
NVD
CVE.org
EPSS
VulDB
Exploit-DB