CVE-2023-27476 json
XML External Entity (XXE) Injection in OWSLib
published 2023-03-07 3 y ago modified 2026-06-17 4 mo ago also GHSA-8h9c-r582-mggc , PYSEC-2023-86 , EUVD-2023-0189
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi owslib 0.28.1
- osgeo owslib 0.28.1
- owslib Debian 14, Debian 13, Debian 12 0.27.2-3
debian advisories DEBIAN-CVE-2023-27476
- owslib Ubuntu Pro 18.04 LTS 0.16.0-1ubuntu0.1~esm1
- owslib Ubuntu Pro 20.04 LTS 0.19.1-1ubuntu0.1~esm1
- owslib Ubuntu Pro 22.04 LTS 0.25.0-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2023-27476
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/geopython/OWSLib#863 commit
- github.com/geopython/OWSLib#863 pull request
- github.com/geopython/OWSLib/releases/tag/0.28.1 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-27476 updated cvss 8.2
python-OWSLib: XML External Entity (XXE) Injection
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.98% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | owslib | <0.28.1 |
0.28.1 |
Affected products
- geopython OWSLib
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f
web, patch
-
github.com
/geopython/OWSLib/pull/863
web
-
github.com
/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc
web, vendor-advisory, advisory
-
securitylab.github.com
/advisories/GHSL-2022-131_owslib/
broken-link, advisory
-
debian.org
/security/2023/dsa-5426
web, advisory
-
lists.debian.org
/debian-lts-announce/2023/06/msg00032.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-27476
advisory
-
github.com
/geopython/OWSLib
package
-
github.com
/geopython/OWSLib/releases/tag/0.28.1
web
-
github.com
/pypa/advisory-database/tree/main/vulns/owslib/PYSEC-2023-86.yaml
web
-
securitylab.github.com
/advisories/GHSL-2022-131_owslib
advisory
Sources
- CVE List CVE-2023-27476
- GitHub Advisory GHSA-8h9c-r582-mggc
- NVD CVE-2023-27476
- OSV PYSEC-2023-86
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.