Bug 2176416 (CVE-2023-27476)

Summary: CVE-2023-27476 python-OWSLib: XML External Entity (XXE) Injection
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-OWSLib 0.28.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-08 14:24:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2176417, 2176418, 2176419    
Bug Blocks:    

Description Mauro Matteo Cascella 2023-03-08 10:57:09 UTC
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.

GitHub Security Advisory:
https://github.com/geopython/OWSLib/security/advisories/GHSA-8h9c-r582-mggc

Upstream fix:
https://github.com/geopython/OWSLib/pull/863/commits/b92687702be9576c0681bb11cad21eb631b9122f

Comment 1 Mauro Matteo Cascella 2023-03-08 10:57:29 UTC
Created mingw-python-OWSLib tracking bugs for this issue:

Affects: fedora-all [bug 2176418]


Created python-OWSLib tracking bugs for this issue:

Affects: epel-all [bug 2176417]
Affects: fedora-all [bug 2176419]

Comment 2 Product Security DevOps Team 2023-03-08 14:24:47 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.