CVE-2023-27476XML External Entity (XXE) Injection in OWSLib
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | owslib | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | owslib | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | owslib | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | owslib | Fix pending | 0.25.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-27476 |
| Ubuntu 20.04 | owslib | Fix pending | 0.19.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-27476 |
| Ubuntu 18.04 | owslib | Fix pending | 0.16.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-27476 |
| Ubuntu 16.04 | owslib | Fix pending | ||
| Debian 14 | owslib | Fixed | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| Debian 13 | owslib | Fixed | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| Debian 12 | owslib | Fixed | 0.27.2-3 | DEBIAN-CVE-2023-27476 |
| PyPI library | owslib | Fixed | 0.28.1 | PYSEC-2023-86 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- geopython OWSLib: affected: < 0.28.1
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.