CVE-2025-69662 Details
Description
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.
A SQL injection vulnerability exists in GeoPandas versions prior to 1.1.2, specifically within the to_postgis() function used to transfer GeoDataFrames to a PostgreSQL database. The vulnerability arises because user inputs, such as table names and geometry column names, are directly concatenated into SQL queries without proper sanitization. This flaw allows attackers to manipulate SQL queries and potentially access or modify sensitive database information.
Users can update to GeoPandas version 1.1.2 or later, where this vulnerability has been fixed. The fix involves replacing direct string interpolation in SQL queries with parameterized queries, which safely handle user inputs and prevent SQL injection attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2026/04/msg00025.html | CVE | |
| https://aydinnyunus.github.io/2025/12/27/sql-injection-geopandas/ | [email protected] | ExploitThird Party Advisory |
| https://github.com/geopandas/geopandas/pull/3681 | [email protected] | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| geopandas geopandas | < 1.1.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | CVE Modified | CVE |
| Feb 11, 2026 | Initial Analysis | [email protected] |
| Jan 30, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | New CVE Received | [email protected] |