Description
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.
Details
CVE ID
CVE-2022-40304
Published / updated
23 Nov 2022, 18:15 UTC · last modified 14 Oct 2026, 18:17 UTC
Severity
HIGH
CVSS score
7.8 · v3.1 ·
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · Attack vector: LocalAffected vendor
Affected products
Ipados, Iphone Os, Macos, Tvos, Watchos, Active Iq Unified Manager, Clustered Data Ontap, Clustered Data Ontap Antivirus Connector, H300s Firmware, H410c Firmware, H410s Firmware, H500s Firmware, H700s Firmware, Manageability Software Development Kit, Smi-S Provider, Snapmanager, Libxml2
Affected versions
Ipados: < 15.7.2
Iphone Os: < 15.7.2
Macos: ≥ 11.0, < 11.7.2
Macos: ≥ 12.0, < 12.6.2
Tvos: < 16.2
Watchos: < 9.2
Active Iq Unified Manager: n/a
Clustered Data Ontap: n/a
Clustered Data Ontap Antivirus Connector: n/a
H300s Firmware: n/a
H410c Firmware: n/a
H410s Firmware: n/a
+6 more configurations
Fixed versions
ipados 15.7.2, iphone os 15.7.2, macos 11.7.2, macos 12.6.2, tvos 16.2, watchos 9.2, libxml2 2.10.3
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
5.81% probability of exploitation in the next 30 days · 93% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (ipados 15.7.2, iphone os 15.7.2, macos 11.7.2, macos 12.6.2, tvos 16.2, watchos 9.2, libxml2 2.10.3) per the vendor advisory.
Source (CNA)
cve@mitre.org
References (20)
AI plain-English explainer
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Learn about this vulnerability
CVSS vs EPSS vs CISA KEV: Understanding the DifferencesThree signals, three different questions. CVSS measures how bad a flaw could be, EPSS estimates how likely exploitation is, and KEV confirms attackers are already using it.Intermediate · 4-minute readWhat Is a CVE? A Beginner's Guide to VulnerabilitiesCVE IDs are the common names for publicly known security flaws. Learn who assigns them, what a CVE record contains, and what a CVE does and doesn't tell you.Beginner · 4-minute readHow to Check Whether Your Software Version Is Affected by a CVEA version match is a starting point, not a verdict. A step-by-step method to confirm exposure using advisories, version ranges and backport notes.Intermediate · 4-minute readTrack this software
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Apple Ipados+ Apple Iphone Os+ Apple Macos+ Apple Tvos