Skip to content
Fencer Vulns
high 8.2

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

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 products
    not 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

Sources

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.