---
id: CVE-2026-77387
title: geopy is a geocoding library for Python
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 withou…
severity: medium
cvss: 4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cwe:
  - CWE-1333
vendor: geopy
product: geopy
affected:
  - geopy < 2.5.0
published: '2026-10-01'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T18:04:10.850'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77387'
references:
  - url: >-
      https://github.com/geopy/geopy/commit/5d09fa843f90ec80788b61552539c9fd3ae6c528
    label: security-advisories@github.com
  - url: 'https://github.com/geopy/geopy/issues/608'
    label: security-advisories@github.com
  - url: 'https://github.com/geopy/geopy/pull/610'
    label: security-advisories@github.com
  - url: 'https://github.com/geopy/geopy/releases/tag/2.5.0'
    label: security-advisories@github.com
  - url: 'https://github.com/geopy/geopy/security/advisories/GHSA-mhvh-fq92-pfmr'
    label: security-advisories@github.com
  - url: 'https://github.com/geopy/geopy/issues/608'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77387.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-77387'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2544826'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-77387'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77387'
  - url: 'https://github.com/advisories/GHSA-mhvh-fq92-pfmr'
  - url: 'https://github.com/geopy/geopy'
  - url: 'https://pypi.org/project/geopy'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - ghsa
  - pip
  - osv
epss: 0.00202
epssPercentile: 0.10013
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-01T17:50:15.527973Z'
ingestedAt: '2026-10-01T18:55:42.366Z'
aliases:
  - GHSA-mhvh-fq92-pfmr
  - PYSEC-2026-4218
ecosystem: pip
patched:
  - geopy 2.5.0
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3 · no fix planned: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3 · updated 2026-10-02 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77387.json)

## Package advisory (CVE-2026-77387)

Affected packages:

- `geopy <= 2.4.1`

Patched in:

- `geopy 2.5.0`

Source: https://github.com/advisories/GHSA-mhvh-fq92-pfmr
