{"id":"CVE-2023-27476","published":"2023-03-07T23:20:32Z","modified":"2025-02-25T15:00:10Z","title":"XML External Entity (XXE) Injection in OWSLib","vendor":"geopython","product":"OWSLib","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00977,"percentile":0.62995,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-131_owslib/","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2023/dsa-5426","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html","tags":[]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":12.6},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"geopython","affectedVersions":[{"vendor":"geopython","product":"OWSLib","versions":["< 0.28.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:31:26.603389Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"OWSLib","vulnerableRanges":["<0.28.1"],"patched":["0.28.1"],"from":["GHSA-8h9c-r582-mggc","PYSEC-2023-86"],"provenance":"source"}],"summary":{"text":"The XML parser in geopython's OWSLib Python package, which handles both lxml and xml.etree, does not disable entity resolution across all of its XML parsing. An attacker who supplies a crafted XML payload to the library can read arbitrary files, and the attack requires only network access to the vulnerable component with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:30Z"},"euvd":{"id":"EUVD-2023-0189","exploited":false,"provenance":"source"}}