{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-53539","id":"CVE-2025-53539","title":"ReDoS in fastapi-guard's penetration attempts detector","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 vulnera","descriptionLong":"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.","published":"2025-07-07T19:16:02.559Z","updated":"2026-10-28T02:30:31.377393684Z","reserved":"2025-07-02T15:15:11.515Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"}],"rating":"medium","products":["rennf93 fastapi-guard"],"affectedProducts":[{"vendor":"rennf93","product":"fastapi-guard","defaultStatus":null,"versions":[{"version":"< 3.0.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"fastapi-guard","purl":"pkg:pypi/fastapi-guard","ranges":["<3.0.1"],"fixed":["3.0.1"],"advisory":"GHSA-j47q-rc62-w448"}],"cwes":["CWE-1333"],"aliases":["GHSA-j47q-rc62-w448","PYSEC-2026-1359"],"references":[{"url":"https://github.com/rennf93/fastapi-guard/security/advisories/GHSA-j47q-rc62-w448","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53539.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53539","tags":["advisory"]},{"url":"https://github.com/rennf93/fastapi-guard","tags":["package"]},{"url":"https://pypi.org/project/fastapi-guard","tags":["package"]},{"url":"https://github.com/advisories/GHSA-j47q-rc62-w448","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00481,"epssPercentile":0.42286,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-53539","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53539","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-53539","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-j47q-rc62-w448","ok":true,"note":"GHSA-j47q-rc62-w448"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-53539","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}