Skip to content
Heist/ feed
Back to feed
Medium

geopy — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-77387

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.

Products
geopy
Affected versions
1.11.0+ds1-1, 1.20.0-1, 1.3.0-1build1, 2.0.0-1, 2.2.0-1, 2.3.0-1, 2.3.0-1ubuntu1, 2.4.1-1, 2.4.1-3
Fixed versions
Not specified
CVEs
CVE-2026-77387
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:18 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-77387

core-osv · Original source

Published 1 Oct 2026, 17:17 UTC

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.

osv:UBUNTU-CVE-2026-77387

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

geopy

Fixed versions: Not specified

Complete source record
{
  "id": "3b51b785255eff34defc1b91d15721c75b02b39f49cfa4fd331e02d95906b18f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-77387",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-77387",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2026-77387",
    "products": [
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.11.0+ds1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.11.0+ds1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.20.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.3.0-1ubuntu1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.4.1-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "geopy",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.1-1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-77387",
      "aliases": [
        "UBUNTU-CVE-2026-77387"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.3.0-1build1",
            "1.11.0+ds1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-geopy",
                "binary_version": "1.11.0+ds1-1"
              },
              {
                "binary_name": "python3-geopy",
                "binary_version": "1.11.0+ds1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.11.0+ds1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-geopy",
                "binary_version": "1.11.0+ds1-1"
              },
              {
                "binary_name": "python3-geopy",
                "binary_version": "1.11.0+ds1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.20.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-geopy",
                "binary_version": "1.20.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.0.0-1",
            "2.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-geopy",
                "binary_version": "2.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.3.0-1",
            "2.3.0-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-geopy",
                "binary_version": "2.3.0-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.4.1-1",
            "2.4.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-geopy",
                "binary_version": "2.4.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "geopy",
            "purl": "pkg:deb/ubuntu/geopy?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.4.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-77387.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-geopy",
                "binary_version": "2.4.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:07.769389661Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-77387"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-77387",
        "https://www.cve.org/CVERecord?id=CVE-2026-77387",
        "https://github.com/geopy/geopy/security/advisories/GHSA-mhvh-fq92-pfmr",
        "https://github.com/geopy/geopy/issues/608",
        "https://github.com/geopy/geopy/pull/610",
        "https://github.com/geopy/geopy/commit/5d09fa843f90ec80788b61552539c9fd3ae6c528",
        "https://github.com/geopy/geopy/releases/tag/2.5.0"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-77387",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361036,
  "published_at": "2026-10-01T17:17:00+00:00"
}