Home / Xmlsoft / Libxml2 / CVE-2022-40304
CVE-2022-40304: is it exploited, and which versions of Xmlsoft Libxml2 are affected and fixed?
CVE-2022-40304 is a double free 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:08 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.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:43 UTC.
What is CVE-2022-40304?
An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
From the CVE record by mitre, last updated October 14, 2026, 18:01 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 | manageability software development kit | all versions | application |
| netapp | smi-s provider | all versions | application |
| netapp | snapmanager | all versions | application |
| 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 |
| 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 |
NVD analysis (status Modified), last modified October 14, 2026, 18:17 UTC.
How severe is CVE-2022-40304?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CISA-ADP |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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-40304 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 28, 2025)
- EPSS
- 5.81% probability of exploitation activity in the next 30 days, percentile 93.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-415 Double Free
Where are the vendor advisories and references?
- https://gitlab.gnome.org/GNOME/libxml2/-/tags
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b
- 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 23, 2022, 00:00 UTC
- CVE record updated
- October 14, 2026, 18:01 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:08 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-40304
Is CVE-2022-40304 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 5.81% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Xmlsoft Libxml2 are affected by CVE-2022-40304?
libxml2 before 2.10.3, active iq unified manager all versions, clustered data ontap all versions, clustered data ontap antivirus connector all versions, manageability software development kit all versions, smi-s provider all versions and 12 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2022-40304?
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-40304?
High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-40304?
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.