Skip to main content
No exploitation reportedFix available

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?

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
  1. 2022-11-2318:15CVE publishedNVD

Versions per branch

NVD
Apple macos
BranchAffectedFixed in
12.x≥ 12.0, < 12.6.212.6.2
11.x≥ 11.0, < 11.7.211.7.2
Apple ipados
BranchAffectedFixed in
15.7< 15.7.215.7.2
Apple iphone os
BranchAffectedFixed in
15.7< 15.7.215.7.2

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

  • CVE-2022-40304 Red Hat Product Security136 products fixed · 10 known affected

    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

  • ICSA-25-044-09 CISA19 known affected

    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 Siemens ProductCERT19 known affected

    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

  • ICSA-24-165-04 CISA1 known affected

    Siemens ST7 ScadaConnect

    ST7 ScadaConnect (6NH7997-5DA10-0AA0)

  • ICSA-24-165-06 CISA2 known affected

    Siemens TIM 1531 IRC

    SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) · TIM 1531 IRC (6GK7543-1MX00-0XE0)

  • ICSA-24-165-10 CISA6 known affected

    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

Full record on NVD

Fix

  1. Update Apple macos to 12.6.2 · 11.7.2
  2. Vendor fix CISA ICSA-25-044-09 · 19 productsUpdate to V3.0.0 or later version
  3. Vendor fix Siemens ProductCERT SSA-769027 · 19 productsUpdate to V3.0.0 or later version
  4. Vendor fix Siemens ProductCERT SSA-625862 · 6 productsUpdate to V2.3 or later version
  5. Vendor fix Siemens ProductCERT SSA-337522 · 2 productsUpdate to V2.4.8 or later version
  6. Vendor fix Siemens ProductCERT SSA-341067 · 1 productUpdate to V1.1 or later version
  7. Vendor fix CISA ICSA-24-165-06 · 2 productsUpdate to V2.4.8 or later version

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2022-40304 actively exploited?

Active exploitation of CVE-2022-40304 has not been confirmed. Its EPSS score was 5.8% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-40304?

CVE-2022-40304 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

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

Sources for this record