Home / Xmlsoft / Libxml2 / CVE-2022-40303
CVE-2022-40303: is it exploited, and which versions of Xmlsoft Libxml2 are affected and fixed?
CVE-2022-40303 is an integer overflow vulnerability in Xmlsoft Libxml2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: libxml2 before 2.10.3, active iq unified manager all versions, clustered data ontap all versions and 15 more (NVD). Fixed in 2.10.3, 15.7.2, 11.7.2, 12.6.2 and 2 more (NVD). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:43 UTC.
What is CVE-2022-40303?
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.
From the CVE record by mitre, last updated October 14, 2026, 17:52 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| xmlsoft | libxml2 | before 2.10.3 | application |
| netapp | active iq unified manager | all versions | application |
| netapp | clustered data ontap | all versions | application |
| netapp | clustered data ontap antivirus connector | all versions | application |
| netapp | netapp manageability sdk | all versions | application |
| netapp | ontap select deploy administration utility | all versions | application |
| netapp | snapmanager | all versions | application |
| apple | ipados | before 15.7.2 | operating system |
| apple | iphone os | before 15.7.2 | operating system |
| apple | macos | from 11.0 before 11.7.2 | operating system |
| apple | macos | from 12.0 before 12.6.2 | operating system |
| apple | tvos | before 16.2 | operating system |
| apple | watchos | before 9.2 | operating system |
| netapp | h300s firmware | all versions | operating system |
| netapp | h500s firmware | all versions | operating system |
| netapp | h700s firmware | all versions | operating system |
| netapp | h410s firmware | all versions | operating system |
| netapp | h410c firmware | all versions | operating system |
NVD analysis (status Modified), last modified October 14, 2026, 18:17 UTC.
How severe is CVE-2022-40303?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-40303 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, April 29, 2025)
- EPSS
- 41.4% probability of exploitation activity in the next 30 days, percentile 98.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/c846986356fc149915a74972bf198abc266bc2c0
- https://security.netapp.com/advisory/ntap-20221209-0003/
- https://support.apple.com/kb/HT213534
- https://support.apple.com/kb/HT213533
- https://support.apple.com/kb/HT213531
- https://support.apple.com/kb/HT213536
- https://support.apple.com/kb/HT213535
- 20221220 APPLE-SA-2022-12-13-2 iOS 15.7.2 and iPadOS 15.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-6 macOS Big Sur 11.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-7 tvOS 16.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-5 macOS Monterey 12.6.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-8 watchOS 9.2 mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
When was it published, and where is the official record?
- Reserved
- September 9, 2022
- Published
- November 22, 2022, 00:00 UTC
- CVE record updated
- October 14, 2026, 17:52 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 18:17 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:43 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libxml2?
- Sep 5, 2026CVE-2026-86144 xmlsoft libxml2: incorrect resource transfer
- Sep 5, 2026CVE-2026-86143 xmlsoft libxml2: integer Coercion Error
- Sep 5, 2026CVE-2026-86142 xmlsoft libxml2: heap buffer overflow
- Sep 5, 2026CVE-2026-86141 xmlsoft libxml2: unchecked return value
- Sep 5, 2026CVE-2026-86140 xmlsoft libxml2: stack buffer overflow
- Sep 5, 2026CVE-2026-86139 xmlsoft libxml2: integer overflow
- Sep 5, 2026CVE-2026-86138 xmlsoft libxml2: integer overflow
- Sep 5, 2026CVE-2026-86137 xmlsoft libxml2: out-of-bounds read
Questions about CVE-2022-40303
Is CVE-2022-40303 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 41.4% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Xmlsoft Libxml2 are affected by CVE-2022-40303?
libxml2 before 2.10.3, active iq unified manager all versions, clustered data ontap all versions, clustered data ontap antivirus connector all versions, netapp manageability sdk all versions, ontap select deploy administration utility all versions and 12 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2022-40303?
2.10.3, 15.7.2, 11.7.2, 12.6.2, 16.2 and 9.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-40303?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-40303?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.