{"id":"CVE-2023-27476","aliases":["DEBIAN-CVE-2023-27476","DLA-3470-1","DSA-5426-1","EUVD-2023-0189","GHSA-8h9c-r582-mggc","MGASA-2023-0112","PYSEC-2023-86","UBUNTU-CVE-2023-27476","USN-8247-1"],"status":"published","title":"XML External Entity (XXE) Injection in OWSLib","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.","severity":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00977,"percentile":0.62436,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-611"],"published":"2023-03-07T20:41:36Z","modified":"2026-10-28T02:30:33Z","fixes":[{"ecosystem":"PyPI","package":"owslib","fixed_in":["0.28.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"owslib","fixed_in":["0.27.2-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"owslib","fixed_in":["0.27.2-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"owslib","fixed_in":["0.27.2-3"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"owslib","fixed_in":["0.17.1-1+deb10u1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"owslib","fixed_in":["0.23.0-1+deb11u1"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"python-owslib","fixed_in":["0.28.1-1.mga8"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"owslib","fixed_in":["0.16.0-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"owslib","fixed_in":["0.19.1-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"owslib","fixed_in":["0.25.0-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"owslib","fixed_in":["0.10.3-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2-3"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.17.1-1+deb10u1"}]}],"versions":["0.17.1-1"]},{"source":"osv","ecosystem":"Debian:11","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0-1+deb11u1"}]}],"versions":["0.23.0-1"]},{"source":"osv","ecosystem":"PyPI","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28.1"}]}],"versions":["0.1.0","0.10.0","0.10.1","0.10.2","0.10.3","0.11.0","0.11.1","0.11.2","0.12.0","0.13.0","0.14.0","0.15.0","0.16.0","0.17.0","0.17.1","0.18.0","0.19.0","0.19.1","0.19.2","0.2.0","0.2.1","0.20.0","0.21.0","0.22.0","0.23.0","0.24.0","0.24.1","0.25.0","0.26.0","0.27.0","0.27.1","0.27.2","0.28.0","0.3","0.3.1","0.4.0","0.5.0","0.5.1","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.8.10","0.8.11","0.8.12","0.8.13","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9","0.9.0","0.9.1","0.9.2"]},{"source":"osv","ecosystem":"Mageia:8","package":"python-owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28.1-1.mga8"}]}]},{"source":"osv","ecosystem":"PyPI","package":"owslib","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"b92687702be9576c0681bb11cad21eb631b9122f"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28.1"}]}],"versions":["0.1.0","0.10.0","0.10.1","0.10.2","0.10.3","0.11.0","0.11.1","0.11.2","0.12.0","0.13.0","0.14.0","0.15.0","0.16.0","0.17.0","0.17.1","0.18.0","0.19.0","0.19.1","0.19.2","0.2.0","0.2.1","0.20.0","0.21.0","0.22.0","0.23.0","0.24.0","0.24.1","0.25.0","0.26.0","0.27.0","0.27.1","0.27.2","0.28.0","0.3","0.3.1","0.4.0","0.5.0","0.5.1","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.8.10","0.8.11","0.8.12","0.8.13","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9","0.9.0","0.9.1","0.9.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.16.0-1ubuntu0.1~esm1"}]}],"versions":["0.14.0-1","0.15.0-1","0.16.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.1-1ubuntu0.1~esm1"}]}],"versions":["0.18.0-1","0.18.0-2","0.19.0-1","0.19.1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25.0-1ubuntu0.1~esm1"}]}],"versions":["0.23.0-1","0.25.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.3-1ubuntu0.1~esm1"}]}],"versions":["0.9.0-1","0.9.2-1","0.10.0-1","0.10.3-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.16.0-1ubuntu0.1~esm1"}]}],"versions":["0.14.0-1","0.15.0-1","0.16.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.1-1ubuntu0.1~esm1"}]}],"versions":["0.18.0-1","0.18.0-2","0.19.0-1","0.19.1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"owslib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25.0-1ubuntu0.1~esm1"}]}],"versions":["0.23.0-1","0.25.0-1"]}],"products":[{"vendor":"geopython","product":"owslib"},{"vendor":"osgeo","product":"owslib"}],"references":[{"url":"https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f","tags":["x_refsource_MISC","x_transferred","Patch","web","fix","report"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-131_owslib/","tags":["x_refsource_MISC","x_transferred","Broken Link","advisory","report"]},{"url":"https://www.debian.org/security/2023/dsa-5426","tags":["x_transferred","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html","tags":["x_transferred","web"]},{"url":"https://github.com/geopython/OWSLib/pull/863","tags":["web"]},{"url":"https://github.com/geopython/OWSLib/releases/tag/0.28.1","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27476","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/owslib/PYSEC-2023-86.yaml","tags":["web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-131_owslib","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8h9c-r582-mggc"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27476.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-27476","tags":["advisory"]},{"url":"https://github.com/geopython/OWSLib","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2023-0112.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31667","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/PYNYFUUI2JO56U35RT7DTZDQDCNCDAMH/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2023-27476","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-27476","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8247-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-27476","title":"XML External Entity (XXE) Injection in OWSLib","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.","status":"published","published":"2023-03-07T23:20:32.878Z","modified":"2025-02-25T15:00:10.207Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:35:26.63732Z"}],"euvd":[{"id":"EUVD-2023-0189","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.","status":"published","published":"2023-03-07T23:20:32Z","modified":"2025-02-25T15:00:10Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high"}],"updated_at":"2026-11-02T20:53:24.646946Z"}],"ghsa":[{"id":"GHSA-8h9c-r582-mggc","title":"OWSLib vulnerable to XML External Entity (XXE) Injection","description":"### Impact\n\nOWSLib's XML parser (which supports both `lxml` and `xml.etree`) does not disable entity resolution for `lxml`, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase.\n\n### Patches\n\n- Use only lxml for XML handling, adding `resolve_entities=False` to `lxml`'s parser: https://github.com/geopython/OWSLib/pull/863\n\n### Workarounds\n\n```python\npatch_well_known_namespaces(etree)\netree.set_default_parser(\n    parser=etree.XMLParser(resolve_entities=False)\n)\n```\n\n### References\n\n- [`GHSL-2022-131`](https://securitylab.github.com/advisories/GHSL-2022-131_OWSLib/)\n","status":"published","published":"2023-03-07T20:41:36Z","modified":"2024-10-07T21:17:58Z","cvss":[{"version":"4.0","score":8.8,"vector":"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","level":"high"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2023-27476","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.","status":"published","published":"2023-03-08T00:15:08.997Z","modified":"2026-06-17T05:45:17.327Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:07:48.342507Z"}],"osv":[{"id":"CVE-2023-27476","title":"XML External Entity (XXE) Injection in OWSLib","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.","status":"published","published":"2023-03-07T23:20:32.878Z","modified":"2026-10-28T02:30:33.785859073Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:44:31.135751Z"},{"id":"DEBIAN-CVE-2023-27476","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.","status":"published","published":"2023-03-08T00:15:08.997Z","modified":"2026-10-26T18:00:34.139184135Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:39.679062Z"},{"id":"GHSA-8h9c-r582-mggc","title":"OWSLib vulnerable to XML External Entity (XXE) Injection","description":"### Impact\n\nOWSLib's XML parser (which supports both `lxml` and `xml.etree`) does not disable entity resolution for `lxml`, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase.\n\n### Patches\n\n- Use only lxml for XML handling, adding `resolve_entities=False` to `lxml`'s parser: https://github.com/geopython/OWSLib/pull/863\n\n### Workarounds\n\n```python\npatch_well_known_namespaces(etree)\netree.set_default_parser(\n    parser=etree.XMLParser(resolve_entities=False)\n)\n```\n\n### References\n\n- [`GHSL-2022-131`](https://securitylab.github.com/advisories/GHSL-2022-131_OWSLib/)\n","status":"published","published":"2023-03-07T20:41:36Z","modified":"2026-02-22T22:56:04.328193Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high"},{"version":"4.0","score":8.8,"vector":"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","level":"high"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:46:42.437513Z"},{"id":"UBUNTU-CVE-2023-27476","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.","status":"published","published":"2023-03-08T00:15:00Z","modified":"2026-05-20T16:13:30.878478858Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T16:54:20.198616Z"},{"id":"DLA-3470-1","title":"owslib - security update","status":"published","published":"2023-06-25T00:00:00Z","modified":"2026-03-09T01:20:14.497268Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"DSA-5426-1","title":"owslib - security update","status":"published","published":"2023-06-14T00:00:00Z","modified":"2026-03-09T02:10:36.405111Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"MGASA-2023-0112","title":"Updated python-owslib packages fix security vulnerability","description":"XML External Entity (XXE) Injection (CVE-2023-27476)\n","status":"published","published":"2023-03-24T05:55:49Z","modified":"2026-04-16T04:43:21.327302317Z","updated_at":"2026-11-02T15:49:42.263076Z"},{"id":"PYSEC-2023-86","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.","status":"published","published":"2023-03-08T00:15:00Z","modified":"2026-02-22T22:49:14.935552Z","updated_at":"2026-11-02T15:52:53.837392Z"},{"id":"USN-8247-1","title":"owslib vulnerability","description":"It was discovered that OWSLib did not properly disable entity resolution\nwithin its XML parser. An attacker could possibly use this issue to read\narbitrary files via a crafted XML payload.","status":"published","published":"2026-05-07T11:44:25Z","modified":"2026-06-25T13:32:32.07237521Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
