# CVE-2025-53539: ReDoS in fastapi-guard's penetration attempts detector

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-07T19:16:02.559Z
- Modified: 2026-07-07T17:56:52.023Z
- Also known as: GHSA-j47q-rc62-w448, PYSEC-2026-1359
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rennf93 fastapi-guard: < 3.0.1
- fastapi-guard (PyPI): before 3.0.1
- fastapi-guard fastapi_guard: before 3.0.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-j47q-rc62-w448> (exploit, vendor-advisory, web)
- <https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-53539> (advisory)
- <https://github.com/rennf93/fastapi-guard> (package)
- <https://pypi.org/project/fastapi-guard> (package)
- <https://github.com/advisories/GHSA-j47q-rc62-w448> (advisory)

## Sources

- CVE List: [CVE-2025-53539](https://www.cve.org/CVERecord?id=CVE-2025-53539), CVE Terms of Use, modified 2025-07-07
- GitHub Advisory Database: [GHSA-j47q-rc62-w448](https://github.com/advisories/GHSA-j47q-rc62-w448), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-53539](https://nvd.nist.gov/vuln/detail/CVE-2025-53539), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1359](https://osv.dev/vulnerability/PYSEC-2026-1359), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-53539 · Whole record: https://cve.day/CVE-2025-53539.json · Rebuilt by cve.day 2026-11-25T22:59:00.760Z
