{"id":"CVE-2025-53539","published":"2025-07-07T19:16:02Z","modified":"2025-07-07T20:51:58Z","title":"ReDoS in fastapi-guard's penetration attempts detector","vendor":"rennf93","product":"fastapi-guard","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00481,"percentile":0.42426,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-j47q-rc62-w448","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.49},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"rennf93","affectedVersions":[{"vendor":"rennf93","product":"fastapi-guard","versions":["< 3.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-07T20:51:32.553883Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"fastapi-guard","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-j47q-rc62-w448","PYSEC-2026-1359"],"provenance":"source"}],"summary":{"text":"The flaw is an inefficient regular expression complexity issue (ReDoS) in the penetration attempts detection component of rennf93's fastapi-guard, a FastAPI security library. Some regex patterns used to scan incoming requests can cause polynomial-time backtracking when processing specially crafted inputs. An unauthenticated remote attacker can send such requests over the network without user interaction to degrade availability of the affected service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:36Z"},"euvd":{"id":"EUVD-2025-20307","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-46814","published":"2025-05-06","fixed":"2.0.0","kev":false},{"cve":"CVE-2025-53539","published":"2025-07-07","fixed":"3.0.1","kev":false},{"cve":"CVE-2025-54365","published":"2025-07-23","fixed":"3.0.2","kev":false,"link":{"from":"CVE-2025-53539","to":"CVE-2025-54365","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:fastapi-guard","fromFixed":"3.0.1","toFixed":"3.0.2","daysApart":16},{"kind":"similar","provenance":"machine","score":0.55,"basis":"same product + description similarity"}]}}],"package":"PyPI:fastapi-guard"}}