guard-coreの脆弱性、1件のリクエストでイベントループが停止するおそれ
Summary
guard-coreの3.5.0から3.13.0までの版には、組み込みの検知パターンで処理が極端に遅くなる脆弱性があります。認証なしの1件のリクエストで、アプリケーション全体のエンドポイントが応答しなくなるおそれがあります。修正版の3.13.0で対応できるため、速やかに更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
guard-coreの3.5.0から3.13.0までの版には、組み込みの検知パターンで処理が極端に遅くなる脆弱性があります。認証なしの1件のリクエストで、アプリケーション全体のエンドポイントが応答しなくなるおそれがあります。修正版の3.13.0で対応できるため、速やかに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rennf93guard-core | — | Not listed |
| PyPIguard-core |
≥ 3.5.0, < 3.13.0→ 3.13.0 |
3.13.0 |
| pipguard-core |
< 3.13.0→ 3.13.0 |
3.13.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com