{"id":"CVE-2026-77387","aliases":["GHSA-mhvh-fq92-pfmr","PYSEC-2026-4218"],"url":"https://o3.security/vulnerability/CVE-2026-77387","summary":"geopy: Regular Expression Denial of Service (ReDoS) in geopy.Point","details":"### Impact\n\n`geopy.Point` and `Point.from_string()` may take excessive CPU time when parsing long, malformed coordinate strings due to inefficient regular-expression behavior. The numeric Point constructor is not affected.\n\nGeocoders' `reverse` methods called with string inputs exercise the vulnerable path.\n\nApplications are affected when they pass attacker-controlled strings to these APIs without an appropriate length limit. Repeated requests may cause denial of service.\n\n### Patches\n\nFixed in geopy **2.5.0** by rejecting overly long (over 256 characters) coordinate strings before parsing.\n\n### Workarounds\n\nLimit coordinate strings to a reasonable maximum length, such as 256 characters, before passing them to geopy.","published":"2026-10-01T16:38:54.176Z","modified":"2026-10-21T02:59:54.849175390Z","cvss":{"score":4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"geopy","fixedVersion":"2.5.0"}],"fix":{"url":"https://github.com/geopy/geopy/commit/5d09fa843f90ec80788b61552539c9fd3ae6c528","label":"geopy/geopy@5d09fa8"},"references":[{"type":"WEB","url":"https://github.com/geopy/geopy/releases/tag/2.5.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77387.json"},{"type":"ADVISORY","url":"https://github.com/geopy/geopy/security/advisories/GHSA-mhvh-fq92-pfmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77387"},{"type":"REPORT","url":"https://github.com/geopy/geopy/issues/608"},{"type":"FIX","url":"https://github.com/geopy/geopy/commit/5d09fa843f90ec80788b61552539c9fd3ae6c528"},{"type":"FIX","url":"https://github.com/geopy/geopy/pull/610"},{"type":"PACKAGE","url":"https://github.com/geopy/geopy"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:59:54.849175390Z"}}