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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Published: 2023-03-07T20:41:36.000Z
- Modified: 2026-06-17T05:45:17.327Z
- Also known as: GHSA-8h9c-r582-mggc, PYSEC-2023-86
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- geopython OWSLib: < 0.28.1
- owslib (PyPI): before 0.28.1; before b92687702be9576c0681bb11cad21eb631b9122f
- osgeo owslib: before 0.28.1

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc> (advisory, vendor-advisory, web)
- <https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f> (fix, patch, web)
- <https://securitylab.github.com/advisories/GHSL-2022-131_owslib/> (advisory, broken-link)
- <https://www.debian.org/security/2023/dsa-5426> (advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-27476> (advisory)
- <https://github.com/geopython/OWSLib/pull/863> (web)
- <https://github.com/geopython/OWSLib> (package)
- <https://github.com/geopython/OWSLib/releases/tag/0.28.1> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/owslib/PYSEC-2023-86.yaml> (web)
- <https://securitylab.github.com/advisories/GHSL-2022-131_owslib> (advisory)

## Sources

- CVE List: [CVE-2023-27476](https://www.cve.org/CVERecord?id=CVE-2023-27476), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-8h9c-r582-mggc](https://github.com/advisories/GHSA-8h9c-r582-mggc), CC-BY-4.0, modified 2026-02-22
- NVD: [CVE-2023-27476](https://nvd.nist.gov/vuln/detail/CVE-2023-27476), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-86](https://osv.dev/vulnerability/PYSEC-2023-86), CC-BY-4.0, modified 2026-02-22

---

Page: https://cve.day/CVE-2023-27476 · Whole record: https://cve.day/CVE-2023-27476.json · Rebuilt by cve.day 2026-11-25T22:58:22.327Z
