CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
5.81% in 30 days
higher than 93% of CVEs; FIRST, December 2, 2026

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?

VendorProductVersionsType
xmlsoftlibxml2before 2.10.3application
netappactive iq unified managerall versionsapplication
netappclustered data ontapall versionsapplication
netappclustered data ontap antivirus connectorall versionsapplication
netappmanageability software development kitall versionsapplication
netappsmi-s providerall versionsapplication
netappsnapmanagerall versionsapplication
netapph300s firmwareall versionsoperating system
netapph500s firmwareall versionsoperating system
netapph700s firmwareall versionsoperating system
netapph410s firmwareall versionsoperating system
netapph410c firmwareall versionsoperating system
appleipadosbefore 15.7.2operating system
appleiphone osbefore 15.7.2operating system
applemacosfrom 11.0 before 11.7.2operating system
applemacosfrom 12.0 before 12.6.2operating system
appletvosbefore 16.2operating system
applewatchosbefore 9.2operating system

NVD analysis (status Modified), last modified October 14, 2026, 18:17 UTC.

How severe is CVE-2022-40304?

ScoreVersionVectorSource
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCISA-ADP
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD

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?

Where are the vendor advisories and references?

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?

Every CVE in Libxml2

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.