Vulnerability · Published Mar 7, 2023 · Assigned by GitHub_M

CVE-2023-27476XML External Entity (XXE) Injection in OWSLib

High 8.2

In plain English

A high-severity XML external entity in OWSLib from geopython. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)1.0%top 37.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12owslib0.27.2-3DEBIAN-CVE-2023-27476
Debian:13owslib0.27.2-3DEBIAN-CVE-2023-27476
Debian:14owslib0.27.2-3DEBIAN-CVE-2023-27476
PyPIowslib0.28.1GHSA-8h9c-r582-mggc
PyPIowslib0.28.1PYSEC-2023-86

Affected products (as reported)

VendorProductVersions
geopython OWSLib < 0.28.1

Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

References