geopython/pywps · Security
XML External Entity Injection in PyWPS
- GHSA ID
- GHSA-p9wf-3xpg-c9g5
- CVE ID
- CVE-2021-39371
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Description
An XML external entity (XXE) injection in PyWPS before 4.5.0 allows an attacker to view files on the application server filesystem by assigning a path to the entity. OWSLib 0.24.1 may also be affected.
CWEs
- CWE-91 · XML Injection (aka Blind XPath Injection)
- CWE-611 · Improper Restriction of XML External Entity Reference
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-39371 ↗
- https://github.com/geopython/OWSLib/issues/790 ↗
- https://github.com/geopython/pywps/pull/616 ↗
- https://lists.debian.org/debian-lts-announce/2021/09/msg00001.html ↗
- https://github.com/geopython/pywps/commit/7d6b26a2e931df2feca0b7fb24f4d01610825aee ↗
- https://github.com/advisories/GHSA-p9wf-3xpg-c9g5 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pywps/PYSEC-2021-121.yaml ↗