CVE-2025-53539 ReDoS in fastapi-guard's penetration attempts detector
MediumCVSS 6.9
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fastapi-guard fastapi guard | < 3.0.1 | 3.0.1 | Fixed |
| pypi fastapi-guard(PyPI) | < 3.0.1; <= 3.0.0; = 0.1.0; = 0.2.0 +19 more | 3.0.1 | Fixed |
| rennf93 fastapi-guard | = < 3.0.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi fastapi-guard(PyPI) | < 3.0.1 | 3.0.1 |
| pypi fastapi-guard(PyPI) | = 0.1.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 0.2.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 0.3.2 | No fix listed |
| pypi fastapi-guard(PyPI) | = 0.3.3 | No fix listed |
| pypi fastapi-guard(PyPI) | = 0.3.4 | No fix listed |
| pypi fastapi-guard(PyPI) | = 0.4.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.0.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.1.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.2.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.2.1 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.2.2 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.3.2 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.4.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 1.5.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.0.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.0.1 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.1.0 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.1.1 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.1.2 | No fix listed |
| pypi fastapi-guard(PyPI) | = 2.1.3 | No fix listed |
| pypi fastapi-guard(PyPI) | = 3.0.0 | No fix listed |
| pypi fastapi-guard(PyPI) | <= 3.0.0 | No fix listed |
| rennf93 fastapi-guard | = < 3.0.1 | No fix listed |
| fastapi-guard fastapi guard | < 3.0.1 | 3.0.1 |
References
- https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-j47q-rc62-w448 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f patch
- github.com product
- pypi.org product
- github.com vendor-advisory