CVE-2021-26221
Linux Debian vulnerability analysis and mitigation

Overview

The ezxml_new function in ezXML 0.8.6 and earlier contains a vulnerability related to out-of-bounds (OOB) write when opening XML files after exhausting the memory pool. This vulnerability was disclosed on February 8, 2021, and affects all versions of ezXML up to and including version 0.8.6 (NVD, CVE).

Technical details

The vulnerability exists in the ezxml_new function implementation where there is incorrect handling of the value returned by calloc. The issue occurs at line 838 in ezxml.c, where a memset operation is performed on memory allocated by malloc without proper error checking. This vulnerability has been assigned a CVSS v3.1 Base Score of 8.1 (HIGH) and a CVSS v2.0 Base Score of 5.8 (MEDIUM). The weakness has been classified as CWE-787 (Out-of-bounds Write) (NVD).

Impact

The vulnerability can lead to out-of-bounds write attempts resulting in segmentation faults in cases of restrictive memory protection, or near NULL pointer overwrites in environments with limited memory restrictions, such as embedded systems. In embedded environments where near-zero memory areas are used to store device configuration, this vulnerability could potentially allow configuration data to be overwritten (SourceForge Bug).

Exploitability

The vulnerability can be triggered both locally and remotely, depending on how XML files are obtained and processed. Memory allocations are triggered during XML file opening, making the allocation error exploitable through crafted XML files. The vulnerability has been confirmed as exploitable and can be reproduced using ErrorSanitizer (SourceForge Bug).

Mitigation and workarounds

The issue can be mitigated by implementing proper error handling for memory allocation failures. The recommended approach follows the SEI CERT C Coding Standard guideline ERR33-C, which suggests detecting and handling standard library errors appropriately. A patch has been proposed to address this specific instance, though it's noted that similar issues may exist in other parts of the codebase (SourceForge Bug).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56865NONEN/A
  • Golang logoGolang
  • cpe:2.3:a:golang:go
NoYesAug 13, 2026
CVE-2026-56864NONEN/A
  • Golang logoGolang
  • golang-1.24
NoYesAug 13, 2026
CVE-2026-56862NONEN/A
  • Golang logoGolang
  • golang-1.27
NoYesAug 13, 2026
CVE-2026-56860NONEN/A
  • Golang logoGolang
  • golang-1.19
NoYesAug 13, 2026
CVE-2026-56859NONEN/A
  • Chainguard logoChainguard
  • golang-1.24
NoYesAug 13, 2026

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