—
PYSEC-2023-86
Quick fix
PYSEC-2023-86 — owslib: upgrade to the fixed version with the command below.
pip install --upgrade 'owslib>=b92687702be9576c0681bb11cad21eb631b9122f'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/owslib
Introduced in:
0Fixed in: b92687702be9576c0681bb11cad21eb631b9122fFix
pip install --upgrade 'owslib>=b92687702be9576c0681bb11cad21eb631b9122f'References
- https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc[ADVISORY]
- https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f[FIX]
- https://securitylab.github.com/advisories/GHSL-2022-131_owslib/[ADVISORY]
- https://www.debian.org/security/2023/dsa-5426[ADVISORY]