CVE-2022-40303

published 22 Nov 2022 · updated 12 Nov 2026

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset typically leading to a segmentation fault.

8.0HighCVSS 7.5EPSS 41%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 41%. No fixed version is recorded.

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-40303 severity on Zeptric[![CVE-2022-40303](https://zeptric.io/badge/cve/CVE-2022-40303.svg)](https://zeptric.io/cve/CVE-2022-40303)