CVE-2026-77387
JSON

4.0medium

geopy: Regular Expression Denial of Service (ReDoS) in geopy.Point

Severity
4.0medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.18% (higher than 4% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mhvh-fq92-pfmrPYSEC-2026-4218

Description

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.

Affected

Product or packageVersionsReported by
geopy geopy< 2.5.0CVE List
geopy (PyPI)before 2.5.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
PyPA Advisory Database4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-1333

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Geocoders' reverse methods called with string inputs exercise the vulnerable path.

Applications are affected when they pass attacker-controlled strings to these APIs without an appropriate length limit. Repeated requests may cause denial of service.

Patches

Fixed in geopy 2.5.0 by rejecting overly long (over 256 characters) coordinate strings before parsing.

Workarounds

Limit coordinate strings to a reasonable maximum length, such as 256 characters, before passing them to geopy.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-77387 changed 2026-10-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-mhvh-fq92-pfmr changed 2026-10-15CC-BY-4.0
NVDCVE-2026-77387 changed 2026-10-02Public domain
PyPA Advisory DatabasePYSEC-2026-4218 changed 2026-10-15CC-BY-4.0