# CVE-2026-129302: Guard Core: Quadratic ReDoS in built-in detection pattern freezes the event loop with a single request

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-16T19:36:17.609Z
- Modified: 2026-11-19T23:00:36.653Z
- Also known as: GHSA-r7hm-rjvg-xx7j
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rennf93 guard-core: >= 3.5.0, < 3.13.0
- guard-core (PyPI): from 3.5.0 before 3.13.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/Guard-Core/guard-core/security/advisories/GHSA-r7hm-rjvg-xx7j> (exploit, web)
- <https://github.com/Guard-Core/guard-core/pull/68> (web)
- <https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4> (web)
- <https://github.com/Guard-Core/guard-core/releases/tag/3.13.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129302> (advisory)
- <https://github.com/rennf93/guard-core> (package)

## Sources

- CVE List: [CVE-2026-129302](https://www.cve.org/CVERecord?id=CVE-2026-129302), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-r7hm-rjvg-xx7j](https://github.com/advisories/GHSA-r7hm-rjvg-xx7j), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-129302](https://nvd.nist.gov/vuln/detail/CVE-2026-129302), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-129302 · Whole record: https://cve.day/CVE-2026-129302.json · Rebuilt by cve.day 2026-11-25T22:59:50.921Z
