PyWPS vulnerability allows remote arbitrary file reading via XML external entities
A flaw in PyWPS's XML parsing allows remote attackers to read sensitive files from the server via XML External Entity (XXE) injection.
Summary
A security vulnerability has been identified in PyWPS, an implementation of the Open Geospatial Consortium's (OGC) Web Processing Service. The flaw stems from the software's failure to disable the resolution of XML external entities during the request parsing process.
This vulnerability, tracked as CVE-2021-39371, allows a remote attacker to potentially read arbitrary files from the host server. The fix is currently available for Ubuntu 20.04 LTS and 18.04 LTS users through Ubuntu Pro via ESM Apps.
Technical details of CVE-2021-39371
- Defect Class: XML External Entity (XXE) injection due to improper configuration of the XML parser.
- Attack Vector: Remote, unauthenticated access via specially crafted XML requests.
- Impact: Unauthorized disclosure of sensitive information through arbitrary file reads on the server.
- Affected Versions: PyWPS implementations used in Ubuntu 20.04 LTS (python3-pywps) and 18.04 LTS (python-pywps).
Why it matters
Users running geospatial web services based on PyWPS must apply these updates to prevent data exfiltration. Because the fix is provided via Ubuntu Pro's ESM Apps, administrators on older LTS releases require an active Ubuntu Pro subscription to secure these specific packages.
Original reference: ubuntu.com →