Vulnerability · Published Mar 7, 2023 · Assigned by GitHub_M
CVE-2023-27476XML External Entity (XXE) Injection in OWSLib
High 8.2
In plain English
A high-severity XML external entity in OWSLib from geopython. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | owslib | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| Debian:13 | owslib | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| Debian:14 | owslib | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| PyPI | owslib | 0.28.1 | GHSA-8h9c-r582-mggc |
| PyPI | owslib | 0.28.1 | PYSEC-2023-86 |
Affected products (as reported)
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
References
- https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc x_refsource_CONFIRM
- https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2022-131_owslib/ x_refsource_MISC
- https://www.debian.org/security/2023/dsa-5426
- https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html