CVE-2021-31348
Linux Debian vulnerability analysis and mitigation

Overview

An issue was discovered in libezxml.a in ezXML 0.8.6. The function ezxml_parse_str() performs incorrect memory handling while parsing crafted XML files, leading to an out-of-bounds read after a certain strcspn failure (NVD, Ubuntu).

Technical details

The vulnerability occurs in the ezxml_parse_str() function when processing XML files. The issue arises when strcspn(s + 1, "[]>") + 1 does not find any of the []> characters in the input string, causing the pointer to move beyond the allocated buffer boundaries. This results in an out-of-bounds read operation. The vulnerability has been assigned a CVSS v3.1 score of 6.5 (Medium) (NVD).

Impact

When exploited, this vulnerability can lead to an out-of-bounds read after a strcspn failure, potentially causing application crashes or information disclosure. The issue affects multiple packages that use the ezXML library, including mapcache, netcdf, netcdf-parallel, and scilab (Debian).

Exploitability

The vulnerability can be triggered by processing specially crafted XML files that exploit the incorrect memory handling in the ezxml_parse_str() function. The issue requires user interaction to process a malicious XML file (Ubuntu).

Mitigation and workarounds

Several distributions have released patches to address this vulnerability. For Debian 9 (stretch), the fix was included in scilab version 5.5.2-4+deb9u1. Various Ubuntu releases have also received updates, with some versions being marked as "not affected" in newer releases (Debian LTS).

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-86140HIGH8
  • Linux Debian logoLinux Debian
  • libxml2
NoNoSep 05, 2026
CVE-2026-86143MEDIUM6.9
  • Linux Debian logoLinux Debian
  • libxml2
NoNoSep 05, 2026
CVE-2026-86142MEDIUM6.9
  • Linux Debian logoLinux Debian
  • libxml2
NoNoSep 05, 2026
CVE-2026-86144MEDIUM5.6
  • Linux Debian logoLinux Debian
  • libxml2
NoNoSep 05, 2026
CVE-2026-86141LOW2.9
  • Linux Debian logoLinux Debian
  • libxml2
NoNoSep 05, 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