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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.28.1 (CNA); fix release not confirmed
- Status: published
- Published: 2023-03-07 · Modified: 2025-02-25
- Aliases: MGASA-2023-0112, GHSA-8h9c-r582-mggc, PYSEC-2023-86, UBUNTU-CVE-2023-27476, DEBIAN-CVE-2023-27476, DLA-3470-1, DSA-5426-1, USN-8247-1
- Record: https://cvemate.com/vulnerability/CVE-2023-27476 · JSON: https://cvemate.com/vulnerability/CVE-2023-27476/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
- EPSS: 0.977%, percentile 63.318%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian owslib (Debian): \< 0.27.2-3 \| \< 0.17.1-1+deb10u1 \| \< 0.23.0-1+deb11u1
- ubuntu owslib (Ubuntu): \< 0.10.3-1ubuntu0.1~esm1 \| \< 0.16.0-1ubuntu0.1~esm1 \| \< 0.19.1-1ubuntu0.1~esm1 \| \< 0.25.0-1ubuntu0.1~esm1
- geopython owslib: \< 0.28.1
- mageia python-owslib (Mageia): \< 0.28.1-1.mga8
- osgeo owslib: \< 0.28.1
- PyPI owslib (PyPI): \< b92687702be9576c0681bb11cad21eb631b9122f \| \< 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>
- <https://advisories.mageia.org/MGASA-2023-0112.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31667>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/PYNYFUUI2JO56U35RT7DTZDQDCNCDAMH/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-27476>
- <https://github.com/geopython/OWSLib/pull/863>
- <https://github.com/geopython/OWSLib>
- <https://github.com/geopython/OWSLib/releases/tag/0.28.1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/owslib/PYSEC-2023-86.yaml>
- <https://securitylab.github.com/advisories/GHSL-2022-131_owslib>
- <https://ubuntu.com/security/CVE-2023-27476>
- <https://www.cve.org/CVERecord?id=CVE-2023-27476>
- <https://ubuntu.com/security/notices/USN-8247-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-27476>

---

Data as of 2026-12-05T10:24:59.327Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
