CVE-2025-69662: Geopandas SQL Injection Vulnerability
HIGHCVE-2025-69662 is a HIGH (CVSS 8.6) sql injection vulnerability (CWE-202: Exposure of Sensitive Information Through Data Queries) affecting Geopandas libraries in the PyPI ecosystem. The issue involves geopandas sql injection vulnerability in to_postgis() allows information disclosure. Remediation is available by upgrading affected packages to version 1.1.2.
CVE-2025-69662 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2025-69662
To remediate this vulnerability, upgrade all affected Geopandas dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install geopandas>=1.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show geopandas
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-69662, inspect your installed packages using pip:
pip show geopandas
Analyze the terminal output to locate any version of Geopandas in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.2), your application is affected.
Note: The pip show geopandas command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-202: Exposure of Sensitive Information Through Data Queries, where when trying to keep information confidential, an attacker can often infer some of the information by using statistics. In Geopandas, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-69662 Affected Geopandas Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
geopandas
|
PyPI |
< 1.1.2
|
1.1.2
|
References
Frequently Asked Questions
What is CVE-2025-69662?
Which Geopandas versions are affected?
What version fixes CVE-2025-69662?
Is geopandas affected?
What is the CVSS score of CVE-2025-69662?
What CWE is associated with CVE-2025-69662?
How can I check PyPI dependencies for CVE-2025-69662?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6497-prx7-gpmq",
"modified" : "2026-06-05T17:56:23Z",
"published" : "2026-01-30T21:30:22Z",
"aliases" : [ "CVE-2025-69662" ],
"summary" : "geopandas SQL Injection Vulnerability in to_postgis() Allows Information Disclosure",
"details" : "SQL injection vulnerability in geopandas before v.1.1.2 allows an attacker to obtain sensitive information via the to_postgis()` function being used to write GeoDataFrames to a PostgreSQL database.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "geopandas"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-69662"
}, {
"type" : "WEB",
"url" : "https://github.com/geopandas/geopandas/issues/3679"
}, {
"type" : "WEB",
"url" : "https://github.com/geopandas/geopandas/pull/3681"
}, {
"type" : "WEB",
"url" : "https://github.com/geopandas/geopandas/commit/6aa8ef14ffdee4ba1044349ab948e1a1fbfaf419"
}, {
"type" : "WEB",
"url" : "https://aydinnyunus.github.io/2025/12/27/sql-injection-geopandas"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geopandas/geopandas"
}, {
"type" : "WEB",
"url" : "https://github.com/geopandas/geopandas/releases/tag/v1.1.2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/geopandas/PYSEC-2026-62.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2026/04/msg00025.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-202", "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-01T18:09:10Z",
"nvd_published_at" : "2026-01-30T19:16:11Z"
}
}