guard-coreの脆弱性、1件のリクエストでイベントループが停止するおそれ
概要
guard-coreの3.5.0から3.13.0までの版には、組み込みの検知パターンで処理が極端に遅くなる脆弱性があります。認証なしの1件のリクエストで、アプリケーション全体のエンドポイントが応答しなくなるおそれがあります。修正版の3.13.0で対応できるため、速やかに更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
guard-coreの3.5.0から3.13.0までの版には、組み込みの検知パターンで処理が極端に遅くなる脆弱性があります。認証なしの1件のリクエストで、アプリケーション全体のエンドポイントが応答しなくなるおそれがあります。修正版の3.13.0で対応できるため、速やかに更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| rennf93guard-core | — | 記載なし |
| 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 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- 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