Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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