XML 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-27476
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 07:45 UTC · Revision 1
Source evidence
XML External Entity (XXE) Injection in OWSLib
core-osv · Original sourcePublished 7 Mar 2023, 23:20 UTC
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.
osv:CVE-2023-27476
Complete source record
{
"id": "ec383be44df0bd14849b4fa14990a232a5cb41230a4a497b098effaaf3e4c01f",
"url": "https://osv.dev/vulnerability/CVE-2023-27476",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "XML External Entity (XXE) Injection in OWSLib",
"summary": "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.",
"evidence": "osv:CVE-2023-27476",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-27476",
"aliases": [
"CVE-2023-27476",
"GHSA-8h9c-r582-mggc",
"PYSEC-2023-86"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/geopython/owslib",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "9530e923697badd5e5962e8f0243f3861150edd0"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.28.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:osgeo:owslib:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.28.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.28.0",
"0.27.2",
"0.27.1",
"0.26.0",
"0.25.0",
"0.24.1",
"0.24.0",
"0.23.0",
"0.22.0",
"0.21.0",
"0.20.0",
"0.19.2",
"0.19.1",
"0.19.0",
"0.18.0",
"0.17.1",
"0.17.0",
"0.16.0",
"0.15.0",
"0.14.0",
"0.13.0",
"0.12.0",
"0.11.2",
"0.11.1",
"0.11.0",
"0.10.3",
"0.10.2",
"0.10.1",
"0.10.0",
"0.9.2",
"0.9.1",
"0.9.0",
"0.8.13",
"0.8.12",
"0.8.11",
"0.8.10",
"0.8.9",
"0.8.8",
"0.8.7",
"0.8.6",
"0.8.5",
"0.8.4",
"0.8.3",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.1",
"0.6.0",
"0.5.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-27476.json"
}
}
],
"modified": "2026-10-28T02:30:33.785859073Z",
"provider": "osv",
"references": [
"https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f",
"https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27476.json",
"https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc",
"https://nvd.nist.gov/vuln/detail/CVE-2023-27476",
"https://securitylab.github.com/advisories/GHSL-2022-131_owslib/",
"https://www.debian.org/security/2023/dsa-5426"
],
"provider_metadata": {
"cwe_ids": [
"CWE-611"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27476.json"
}
},
"related_cves": [
{
"value": "CVE-2023-27476",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 500885,
"published_at": "2023-03-07T23:20:32.878+00:00"
}