Vulnerability Details : CVE-2023-27476
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.
Vulnerability category: XML external entity (XXE) injection
Products affected by CVE-2023-27476
- cpe:2.3:a:osgeo:owslib:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-27476
1.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 75 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-27476
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
8.2
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
3.9
|
4.2
|
GitHub, Inc. |
CWE ids for CVE-2023-27476
-
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-27476
-
https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f
use only lxml for XML handling by tomkralidis · Pull Request #863 · geopython/OWSLib · GitHubPatch
-
https://www.debian.org/security/2023/dsa-5426
Debian -- Security Information -- DSA-5426-1 owslib
-
https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc
XML External Entity (XXE) Injection in OWSLib · Advisory · geopython/OWSLib · GitHubVendor Advisory
-
https://lists.debian.org/debian-lts-announce/2023/06/msg00032.html
[SECURITY] [DLA 3470-1] owslib security update
-
https://securitylab.github.com/advisories/GHSL-2022-131_owslib/
GitHub Security Lab | Securing the world’s software, togetherBroken Link
Jump to