Kurz gesagt
- CVE-2023-27476 ist eine Schwachstelle (HOCH (CVSS 7.5)) in owslib, owslib (osgeo).
- Wahrscheinlichkeit einer Ausnutzung in den nächsten 30 Tagen (EPSS): 0.98%, höher als bei 62.2% aller Schwachstellen.
- Abhilfe: auf 0.28.1 oder neuer aktualisieren.
| Package | Affected versions | Patched versions |
|---|
| owslib PyPI | < 0.28.1
| 0.28.1
|
| owslib | < 0.28.1
| 0.28.1
|
Description
Impact
OWSLib's XML parser (which supports both lxml and xml.etree) does not disable entity resolution for lxml, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase.
Patches
Workarounds
patch_well_known_namespaces(etree)
etree.set_default_parser(
parser=etree.XMLParser(resolve_entities=False)
)
References
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free