CVEfocus › CVE database › CVE-2023-27476

CVE-2023-27476XML External Entity (XXE) Injection in OWSLib

CVSS 8.2 HighEPSS 1.0% (higher than 62% of CVEs)Published 2023-03-07Updated 2025-02-25Assigner: GitHub_M

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.

CWE-611

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

4Fixed
4Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04owslibNot affected
vulnerable_code_not_present
Ubuntu 25.10owslibNot affected
vulnerable_code_not_present
Ubuntu 24.04owslibNot affected
vulnerable_code_not_present
Ubuntu 22.04owslibFix pending0.25.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27476
Ubuntu 20.04owslibFix pending0.19.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27476
Ubuntu 18.04owslibFix pending0.16.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27476
Ubuntu 16.04owslibFix pending
Debian 14owslibFixed0.27.2-3DEBIAN-CVE-2023-27476
Debian 13owslibFixed0.27.2-3DEBIAN-CVE-2023-27476
Debian 12owslibFixed0.27.2-3DEBIAN-CVE-2023-27476
PyPI libraryowslibFixed0.28.1PYSEC-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.

References

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.