Description
OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service interface standards, and their related content models. OWSLib's XML parser (which supports both `lxml` and `xml.etree`) does not disable entity resolution, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase. This issue has been addressed in version 0.28.1. All users are advised to upgrade. The only known workaround is to patch the library manually. See `GHSA-8h9c-r582-mggc` for details.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| geopython | OWSLib | < 0.28.1 | — |
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 | owslib | 0.27.2-3 | — |
| Debian 13 | owslib | 0.27.2-3 | — |
| Debian 12 | owslib | 0.27.2-3 | — |
| Debian 11 | owslib | 0.23.0-1+deb11u1 | DSA-5426-1 |
| Debian 10 | owslib | 0.17.1-1+deb10u1 | DLA-3470-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | owslib | 0.25.0-1ubuntu0.1~esm1 | — |
| Ubuntu Pro 20.04 LTS | owslib | 0.19.1-1ubuntu0.1~esm1 | — |
| Ubuntu Pro 18.04 LTS | owslib | 0.16.0-1ubuntu0.1~esm1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | owslib | < 0.28.1 | 0.28.1 | GHSA-8h9c-r582-mggc |
Advisories 2
- DSA-5426-1 owslib - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3470-1 owslib - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc
- https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f
- https://securitylab.github.com/advisories/GHSL-2022-131_owslib/
- https://www.debian.org/security/2023/dsa-5426
- https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html