CVE-2022-40304
Record from NVD · Published October 14, 2022
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.
EPSS 5.81% · 93.3th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libxml2.vc140_xp.mt.static.x86 | NuGet | 2.10.3 |
| libxml2 | NuGet | 2.10.3 |
| nokogiri | RubyGems | 1.13.9 |
| libxml2-python | Amazon Linux | 2.9.1-6.amzn2.5.7 |
| libxml2 | Alpine | 2.10.3-r0, 2.9.14-r2 |
| xmlsec1-openssl-devel | Amazon Linux | 1.2.33-3.amzn2023.0.2 |
| python3-libxml2 | Amazon Linux | 2.10.3-2.amzn2023.0.1 |
| xmlsec1-openssl | Amazon Linux | 1.2.33-3.amzn2023.0.2 |
| xmlsec1-devel | Amazon Linux | 1.2.33-3.amzn2023.0.2 |
| libxml2 | conan.io | 2.10.3 |
| libxml2 | Amazon Linux | 2.10.3-2.amzn2023.0.1, 2.9.1-6.amzn2.5.7 |
| xmlsec1 | Amazon Linux | 1.2.33-3.amzn2023.0.2 |
10 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| netapp | h410c_firmware | |
| netapp | clustered_data_ontap | |
| apple | macos | 11.0, 12.0 |
| netapp | h300s_firmware | |
| xmlsoft | libxml2 | 0 |
| netapp | active_iq_unified_manager | |
| apple | ipados | 0 |
| netapp | h410s_firmware | |
| netapp | h500s_firmware | |
| netapp | snapmanager | |
| netapp | h700s_firmware | |
| apple | iphone_os | 0 |
| netapp | smi-s_provider | |
| apple | tvos | 0 |
| apple | watchos | 0 |
| netapp | manageability_software_development_kit | |
| netapp | clustered_data_ontap_antivirus_connector |
Timeline
- Oct 14, 2022 CVE Published
- Nov 24, 2022 EPSS Score (30 in total, the first dated here)
- Dec 13, 2022 VulnCheck KEV Exploitation
- Dec 16, 2025 PoC Published
- Mar 17, 2026 Security Advisory (99 in total, the first dated here)
- Mar 27, 2026 Distribution Patch (76 in total, the first dated here)
- Jun 17, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-40304
vulnetix vdb fixes CVE-2022-40304
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-40304/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- http://seclists.org/fulldisclosure/2022/Dec/21 mailing_list
- http://seclists.org/fulldisclosure/2022/Dec/24 mailing_list
- http://seclists.org/fulldisclosure/2022/Dec/25 mailing_list
- http://seclists.org/fulldisclosure/2022/Dec/26 mailing_list
- http://seclists.org/fulldisclosure/2022/Dec/27 technical
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b patch
- https://gitlab.gnome.org/GNOME/libxml2/-/tags technical
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3 patch
- https://security.netapp.com/advisory/ntap-20221209-0003/ advisory
- https://support.apple.com/kb/HT213531 advisory
- https://support.apple.com/kb/HT213533 advisory
- https://support.apple.com/kb/HT213534 advisory
- https://support.apple.com/kb/HT213535 advisory
- https://support.apple.com/kb/HT213536 advisory
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html technical
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html technical