CVE & CISA-KEV Catalog

CVE-2022-40303

HIGHEPSS 98th pctl
7.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
libxml2Amazon
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
libxml2-debuginfoAmazon
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
libxml2-debugsourceAmazon
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
libxml2-develAmazon
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
libxml2-pythonAmazon
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
libxml2-staticAmazon
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.9.1-6.amzn2.5.7
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
python3-libxml2Amazon
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
python3-libxml2-debuginfoAmazon
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
Fixed in:0:2.10.3-2.amzn2023.0.1
xmlsec1Amazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-debuginfoAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-debugsourceAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-develAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-opensslAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-openssl-debuginfoAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
xmlsec1-openssl-develAmazon
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
Fixed in:0:1.2.33-3.amzn2023.0.2
libxml2Debian
Fixed in:2.9.14+dfsg-1.1CVE-2022-40303
Fixed in:2.9.14+dfsg-1.1CVE-2022-40303
Fixed in:2.9.14+dfsg-1.1CVE-2022-40303
libxml2Rocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2Red Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debuginfoRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debuginfoRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debugsourceRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debugsourceRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-develRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-develRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2Rocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2Red Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2-debuginfoRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2-debuginfoRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2Ubuntu
Fixed in:2.9.1+dfsg1-3ubuntu4.13+esm4USN-5760-2

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:2.9.3+dfsg1-1ubuntu0.7+esm4USN-5760-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.9.4+dfsg1-6.1ubuntu1.8USN-5760-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.9.10+dfsg-5ubuntu0.20.04.5USN-5760-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.9.13+dfsg-1ubuntu0.2USN-5760-1
Fixed in:2.9.14+dfsg-1ubuntu0.1USN-5760-1

This Ubuntu release reached end-of-life on 2023-07-20.

libxml2-utilsUbuntu
Fixed in:2.9.1+dfsg1-3ubuntu4.13+esm4USN-5760-2

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:2.9.3+dfsg1-1ubuntu0.7+esm4USN-5760-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.9.4+dfsg1-6.1ubuntu1.8USN-5760-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.9.10+dfsg-5ubuntu0.20.04.5USN-5760-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.9.13+dfsg-1ubuntu0.2USN-5760-1
Fixed in:2.9.14+dfsg-1ubuntu0.1USN-5760-1

This Ubuntu release reached end-of-life on 2023-07-20.

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

22.79%probability of exploitation in 30 days
98thpercentile

Very high risk: more likely to be exploited than 98% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.391%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix

Common questions

How do I fix CVE-2022-40303?

Published advisories record a fix for 31 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-40303 being actively exploited?

Not that we know of. CVE-2022-40303 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 22.8% is the estimated probability that it will be exploited in the next 30 days. That is higher than 98% of all scored CVEs.

How severe is CVE-2022-40303?

CVE-2022-40303 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-40303 affect?

Published advisories record a fix for libxml2 (Amazon), libxml2-debuginfo (Amazon), libxml2-debugsource (Amazon), libxml2-devel (Amazon), and 27 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-40303
CVE-2022-40303 severity badge

Markdown

[![CVE-2022-40303](https://tridentstack.com/cve/badge/CVE-2022-40303.svg)](https://tridentstack.com/cve/CVE-2022-40303)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-40303"><img src="https://tridentstack.com/cve/badge/CVE-2022-40303.svg" alt="CVE-2022-40303"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.