{"id":"CVE-2026-77387","aliases":["CVE-2026-77387","GHSA-mhvh-fq92-pfmr","PYSEC-2026-4218"],"related":[],"kind":"vulnerability","state":"published","title":"geopy: Regular Expression Denial of Service (ReDoS) in geopy.Point","summary":"geopy is a geocoding library for Python. Prior to 2.5.0, geopy.Point and Point.from_string() can spend excessive CPU time due to inefficient regular-expression behavior when an application passes a long malformed coordinate string without the 256-character input limit used by the fix. Geocoder reverse methods also reach the vulnerable parsing path when called with string inputs. Repeated attacker-controlled requests can cause a denial of service, while the numeric Point constructor is unaffected. This issue is fixed in version 2.5.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"geopy is a geocoding library for Python. Prior to 2.5.0, geopy.Point and Point.from_string() can spend excessive CPU time due to inefficient regular-expression behavior when an application passes a long malformed coordinate string without the 256-character input limit used by the fix. Geocoder reverse methods also reach the vulnerable parsing path when called with string inputs. Repeated attacker-controlled requests can cause a denial of service, while the numeric Point constructor is unaffected. This issue is fixed in version 2.5.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-01T16:38:54.176Z","modified":"2026-10-15T14:55:37.906Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 2.5.0","status":"affected"}],"vendor":"geopy","product":"geopy","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.0"}],"ecosystem":"PyPI","package":"geopy","purl":"pkg:pypi/geopy","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.0"}],"ecosystem":"PyPI","package":"geopy","purl":"pkg:pypi/geopy","source":"pysec"}],"references":[{"url":"https://github.com/geopy/geopy/security/advisories/GHSA-mhvh-fq92-pfmr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/geopy/geopy/issues/608","tags":["exploit","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/geopy/geopy/pull/610","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/geopy/geopy/commit/5d09fa843f90ec80788b61552539c9fd3ae6c528","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/geopy/geopy/releases/tag/2.5.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77387","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/geopy/geopy","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/geopy","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-mhvh-fq92-pfmr","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-10-01T17:50:15.527Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77387","url":"https://www.cve.org/CVERecord?id=CVE-2026-77387","licence":"CVE Terms of Use","modified":"2026-10-01T17:50:39.404Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mhvh-fq92-pfmr","url":"https://github.com/advisories/GHSA-mhvh-fq92-pfmr","licence":"CC-BY-4.0","modified":"2026-10-15T14:55:37.906Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77387","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77387","licence":"Public domain","modified":"2026-10-02T18:04:10.850Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4218","url":"https://osv.dev/vulnerability/PYSEC-2026-4218","licence":"CC-BY-4.0","modified":"2026-10-15T14:45:04.403Z"}],"updatedAt":"2026-11-25T22:59:41.860Z","epss":{"score":0.00177,"percentile":0.04293,"date":"2026-11-30T12:00:22.000Z"}}