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 XMLPARSEHUGE 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 XMLPARSEHUGE 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).

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-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 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