CVE-2021-23418
Python vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-23418 affects the Glances package versions before 3.2.1. Glances, a cross-platform curses-based monitoring tool, was found to be vulnerable to XML External Entity (XXE) Injection through the use of Fault to parse untrusted XML data. This vulnerability was disclosed on June 18, 2021, and published on July 29, 2021 (Snyk).

Technical details

The vulnerability stems from using Fault to parse untrusted XML data, which is known to be vulnerable to XML attacks. The issue was identified in the glances/compat.py file where xmlrpclib was being used without proper security measures. The vulnerability has a CVSS v3.1 base score of 6.3 (medium severity) according to Snyk's assessment, with network attack vector, low attack complexity, and requiring user interaction (Snyk).

Impact

If exploited, this XXE vulnerability could lead to the disclosure of local files containing sensitive data such as passwords or private user data. The attacker could potentially access local resources, which might result in reduced performance or interruptions in resource availability. The impact includes potential loss of confidentiality and integrity, with limited control over the extent of data modification (Snyk).

Mitigation and workarounds

The vulnerability was addressed in Glances version 3.2.1 by implementing the defusedxml.xmlrpc.monkey_patch() function to monkey-patch xmlrpclib and mitigate XML vulnerabilities. Users should upgrade to Glances version 3.2.1 or higher to resolve this security issue (GitHub Issue, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65896CRITICAL9.8
  • PythonPython
  • asyncmy
NoNoDec 02, 2025
CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management