# CVE-2021-23418: XML External Entity (XXE) Injection

- Severity: Medium 6.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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.65%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-29T17:50:12.851Z
- Modified: 2026-06-17T03:38:43.620Z
- Also known as: GHSA-r2mj-8wgq-73m6, PYSEC-2021-115, SNYK-PYTHON-GLANCES-1311807
- Weaknesses: CWE-611
- Assigned by: snyk

## Description

The package glances before 3.2.1 are vulnerable to XML External Entity (XXE) Injection via the use of Fault to parse untrusted XML data, which is known to be vulnerable to XML attacks.

(As written by CVE List.)

## Affected

- Glances: from unspecified before 3.2.1
- glances (PyPI): before 3.2.1; before 85d5a6b4af31fcf785d5a61086cbbd166b40b07a; before 9d6051be4a42f692392049fdbfc85d5dfa458b32; before 4b87e979afdc06d98ed1b48da31e69eaa3a9fb94
- glances_project glances: before 3.2.1

## Every score

- snyk: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/nicolargo/glances/issues/1025> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-PYTHON-GLANCES-1311807> (advisory, patch, third-party-advisory, web)
- <https://github.com/nicolargo/glances/commit/4b87e979afdc06d98ed1b48da31e69eaa3a9fb94> (fix, patch, third-party-advisory, web)
- <https://github.com/nicolargo/glances/commit/85d5a6b4af31fcf785d5a61086cbbd166b40b07a> (fix, patch, third-party-advisory, web)
- <https://github.com/nicolargo/glances/commit/9d6051be4a42f692392049fdbfc85d5dfa458b32> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23418> (advisory)
- <https://github.com/advisories/GHSA-r2mj-8wgq-73m6> (advisory)
- <https://github.com/nicolargo/glances> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/glances/PYSEC-2021-115.yaml> (web)

## Sources

- CVE List: [CVE-2021-23418](https://www.cve.org/CVERecord?id=CVE-2021-23418), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-r2mj-8wgq-73m6](https://github.com/advisories/GHSA-r2mj-8wgq-73m6), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-23418](https://nvd.nist.gov/vuln/detail/CVE-2021-23418), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-115](https://osv.dev/vulnerability/PYSEC-2021-115), CC-BY-4.0, modified 2023-11-08

---

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