# CVE-2021-39371: XML External Entity Injection in PyWPS

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.52%, higher than 75% of CVEs (2026-12-01)
- Published: 2021-08-23T00:03:20.000Z
- Modified: 2026-06-17T04:03:38.563Z
- Also known as: GHSA-p9wf-3xpg-c9g5, PYSEC-2021-121
- Weaknesses: CWE-91, CWE-611
- Assigned by: mitre

## Description

An XML external entity (XXE) injection in PyWPS before 4.4.5 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pywps (PyPI): before 4.5.0
- osgeo owslib: 0.24.1
- osgeo pywps: before 4.4.5
- debian debian_linux: 9.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/geopython/pywps/pull/616> (patch, third-party-advisory, web)
- <https://github.com/geopython/OWSLib/issues/790> (issue-tracking, patch, report, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/09/msg00001.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39371> (advisory)
- <https://github.com/geopython/pywps/commit/7d6b26a2e931df2feca0b7fb24f4d01610825aee> (web)
- <https://github.com/advisories/GHSA-p9wf-3xpg-c9g5> (advisory)
- <https://github.com/geopython/pywps> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pywps/PYSEC-2021-121.yaml> (web)

## Sources

- CVE List: [CVE-2021-39371](https://www.cve.org/CVERecord?id=CVE-2021-39371), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-p9wf-3xpg-c9g5](https://github.com/advisories/GHSA-p9wf-3xpg-c9g5), CC-BY-4.0, modified 2024-10-24
- NVD: [CVE-2021-39371](https://nvd.nist.gov/vuln/detail/CVE-2021-39371), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-121](https://osv.dev/vulnerability/PYSEC-2021-121), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-39371 · Whole record: https://cve.day/CVE-2021-39371.json · Rebuilt by cve.day 2026-11-25T22:58:03.351Z
