CVE-2022-40303
NixOS vulnerability analysis and mitigation

Overview

A vulnerability was discovered in libxml2 versions prior to 2.10.3 (CVE-2022-40303). When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow, resulting in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault (NVD, Ubuntu).

Technical details

The vulnerability is characterized by an integer overflow condition that occurs when processing large XML documents with the XML_PARSE_HUGE option enabled. The issue was addressed through improved input validation in libxml2 version 2.10.3. The vulnerability has a CVSS 3.1 Base Score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (Ubuntu).

Impact

When successfully exploited, this vulnerability can lead to unexpected application termination or arbitrary code execution. The primary impact is on availability, as the integer overflow results in a segmentation fault when attempting to access memory at an invalid negative offset (NVD, NetApp Security).

Exploitability

The vulnerability can be triggered remotely by sending a specially crafted multi-gigabyte XML document to a system using the affected libxml2 versions with XML_PARSE_HUGE parser option enabled. The attack requires no privileges or user interaction, making it relatively straightforward to exploit (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in libxml2 version 2.10.3. Users are advised to upgrade to this version or later. Multiple vendors have released patches for their affected products, including Ubuntu, Red Hat, and Apple in their various operating system versions (Ubuntu, NetApp Security).

Community reactions

The vulnerability was discovered and reported by Maddie Stone of Google Project Zero. Major technology companies including Apple, NetApp, and various Linux distributions have acknowledged the vulnerability and released patches for their affected products (Apple Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 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