CVE-2022-40304
No exploitation reported by the sources we read.
- Published2022-11-23
- Fixed in12.6.2 · 11.7.2
- WeaknessCWE-415
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-11-2318:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.x | ≥ 12.0, < 12.6.2 | 12.6.2 | NVD |
| 11.x | ≥ 11.0, < 11.7.2 | 11.7.2 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 15.7 | < 15.7.2 | 15.7.2 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 15.7 | < 15.7.2 | 15.7.2 | NVD |
14 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libxml2Wolfiall versions · fixed in 0
- libxml2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.9.3+dfsg1-1ubuntu0.7+esm4
- libxml2Ubuntu:Pro:14.04:LTSall versions · fixed in 2.9.1+dfsg1-3ubuntu4.13+esm4
- libxml2Ubuntu:22.04:LTSall versions · fixed in 2.9.13+dfsg-1ubuntu0.2
- libxml2Ubuntu:20.04:LTSall versions · fixed in 2.9.10+dfsg-5ubuntu0.20.04.5
- libxml2Ubuntu:18.04:LTSall versions · fixed in 2.9.4+dfsg1-6.1ubuntu1.8
- libxml2TuxCare:Ubuntu:16.04all versions · fixed in 2.9.3+dfsg1-1ubuntu0.7+tuxcare.els5and 4 other packages
- libxml2TuxCare:OracleLinux:6all versions · fixed in 2.7.6-21.0.1.el6_8.1.tuxcare.ol.els3and 3 other packages
86 more package ranges on OSV.dev
Vendor advisories
libxml2: dict corruption caused by entity reference cycles
libxml2 as a component of Red Hat Enterprise Linux 6 · libxml2-devel as a component of Red Hat Enterprise Linux 6 · libxml2-python as a component of Red Hat Enterprise Linux 6 · +7 more
Siemens SCALANCE W700 IEEE 802.11ax
SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) · SCALANCE WAM763-1 (6GK5763-1AL00-7DA0) · SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) · +16 more
SSA-769027: Multiple Vulnerabilities fixed in SCALANCE W700 IEEE 802.11ax devices before V3.0.0
SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) · SCALANCE WAM763-1 (6GK5763-1AL00-7DA0) · SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) · +16 more
Siemens ST7 ScadaConnect
ST7 ScadaConnect (6NH7997-5DA10-0AA0)
Siemens TIM 1531 IRC
SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) · TIM 1531 IRC (6GK7543-1MX00-0XE0)
Siemens SIMATIC and SIPLUS
SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0) · SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0) · SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) · +3 more
10 more advisories
Fix
- Update Apple macos to 12.6.2 · 11.7.2
- Vendor fix CISA ICSA-25-044-09 · 19 productsUpdate to V3.0.0 or later version
- Vendor fix Siemens ProductCERT SSA-769027 · 19 productsUpdate to V3.0.0 or later version
- Vendor fix Siemens ProductCERT SSA-625862 · 6 productsUpdate to V2.3 or later version
- Vendor fix Siemens ProductCERT SSA-337522 · 2 productsUpdate to V2.4.8 or later version
- Vendor fix Siemens ProductCERT SSA-341067 · 1 productUpdate to V1.1 or later version
- Vendor fix CISA ICSA-24-165-06 · 2 productsUpdate to V2.4.8 or later version
Advisories and patches
- gitlab.gnome.orgPatch
- gitlab.gnome.orgRelease Notes
- gitlab.gnome.orgPatch · Release Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-04-28
- CISA-ADPCVSS 3.17.82025-04-28
- NVDCVSS 3.17.8read 2026-10-23
- CISA-ADPweakness (CWE)CWE-4152025-04-28
- NVDweakness (CWE)CWE-415read 2026-10-23
- FIRST EPSSEPSS score5.8 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-11500same flawAzure Linux · MIT
- CGA-3x5f-hjjj-43q8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qp8r-9hrf-42q5same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-43601same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-g848-pppp-vg6fsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2025-78same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2023:0173advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:0338advisory covering several CVEsAlmaLinux · MIT
- DLA-3172-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5271-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0412advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-2080advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-2081advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-2082advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12419-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:0173advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:0338advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0413advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2023:0173advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:0338advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:3692-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3717-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3871-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5760-1advisory covering several CVEsUbuntu
- USN-5760-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2022-11-23
- Last Modified
- 2026-10-14
- NVD status
- Modified
- GitHub Advisory
- GHSA-g848-pppp-vg6f
Frequently asked questions
What is CVE-2022-40304?
Is CVE-2022-40304 actively exploited?
What is the CVSS score for CVE-2022-40304?
Running libxml2? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-g848-pppp-vg6f
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0