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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-geopandas | 1.1.2-1 | — |
| Debian 13 | python-geopandas | No fix yet | — |
| Debian 12 | python-geopandas | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | python-geopandas | 1.0.1-2ubuntu0.1 | USN-8083-1 |
| Ubuntu 24.04 LTS | python-geopandas | 0.14.3-2ubuntu0.1 | USN-8083-1 |
| Ubuntu 22.04 LTS | python-geopandas | 0.10.2-1ubuntu0.1 | USN-8083-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | geopandas | < 1.1.2 | 1.1.2 | GHSA-6497-prx7-gpmq |
Advisories 1
- USN-8083-1 python-geopandas vulnerability Ubuntu Security Notices (USN) · Mar 14, 2026