ReDoS in fastapi-guard's penetration attempts detector
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rennf93 | fastapi-guard | before 3.0.1 | 3.0.1 | Patch available | CNA |
| — | fastapi-guard (PyPI) | before 3.0.1 | 3.0.1 | Patch available | GHSA-j47q-rc62-w448 |
- fastapi-guard Vendorrennf93 Affected before 3.0.1 Fixed in 3.0.1 Patch available CNA
- fastapi-guard (PyPI) Vendor— Affected before 3.0.1 Fixed in 3.0.1 Patch available GHSA-j47q-rc62-w448
Remediation
- Fix · CNA fastapi-guard (rennf93) Fixed in 3.0.1
- Fix · GHSA-j47q-rc62-w448 fastapi-guard (PyPI) Fixed in 3.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53539
- 2026-10-03 Alias added: GHSA-j47q-rc62-w448
References
More rennf93 Fastapi Guard vulnerabilities
- TI-2025-34178 fastapi-guard patch contains bypassable RegEx CVSS 4.0HIGH 7.8
- TI-2025-29447 FastAPI Guard Remote Header Injection via X-Forwarded-For Manipulation CVSS 3.1HIGH 7.5
Sources
- CVE-2025-53539 · CVE Program
- CVE-2025-53539 · NVD
- FIRST EPSS
- GHSA-j47q-rc62-w448 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences