製品・ソフトウェアに関する情報
FastAPI Guardの正規表現バックトラックによりサービス拒否が可能な脆弱性
Title FastAPI Guardの正規表現バックトラックによりサービス拒否が可能な脆弱性
Summary

FastAPI Guardは、FastAPI向けのセキュリティライブラリで、IP制御やリクエストのログ取得、ペネトレーション試行の検出などのミドルウェアを提供します。fastapi-guardのペネトレーション試行検出機能では、受信したリクエストを正規表現でスキャンしていますが、検出に使用されている一部の正規表現パターンが非常に非効率で、特別に細工された入力を処理する際に多項式的な複雑さによってバックトラックが発生する可能性があります。この脆弱性はバージョン3.0.1で修正されました。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date July 7, 2025, midnight
Registration Date Jan. 6, 2026, 12:06 p.m.
Last Update Jan. 6, 2026, 12:06 p.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
FastAPI Guard
FastAPI Guard 3.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年01月06日]
  掲載
Jan. 6, 2026, 12:06 p.m.

NVD Vulnerability Information
CVE-2025-53539
Summary

FastAPI Guard is a security library for FastAPI that provides middleware to control IPs, log requests, and detect penetration attempts. fastapi-guard's penetration attempts detection uses regex to scan incoming requests. However, some of the regex patterns used in detection are extremely inefficient and can cause polynomial complexity backtracks when handling specially crafted inputs. This vulnerability is fixed in 3.0.1.

Publication Date July 8, 2025, 5:15 a.m.
Registration Date July 9, 2025, 4:02 a.m.
Last Update July 8, 2025, 5:15 a.m.
Related information, measures and tools
Common Vulnerabilities List