CVE & CISA-KEV Catalog

CVE-2022-40304

HIGHEPSS 93th pctl
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
libxml2Debian
Fixed in:2.9.10+dfsg-6.7+deb11u3CVE-2022-40304
Fixed in:2.9.14+dfsg-1.1CVE-2022-40304
Fixed in:2.9.14+dfsg-1.1CVE-2022-40304
Fixed in:2.9.14+dfsg-1.1CVE-2022-40304
libxml2Red Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2Rocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debuginfoRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debuginfoRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debugsourceRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-debugsourceRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-develRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2-develRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2Rocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2Red Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2-debuginfoRocky
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
python3-libxml2-debuginfoRed Hat / RHEL
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
Fixed in:0:2.9.7-13.el8_6.4RHSA-2024:0413
libxml2Ubuntu
Fixed in:2.9.1+dfsg1-3ubuntu4.13+esm4USN-5760-2
Fixed in:2.9.3+dfsg1-1ubuntu0.7+esm4USN-5760-2
Fixed in:2.9.4+dfsg1-6.1ubuntu1.8USN-5760-1
Fixed in:2.9.10+dfsg-5ubuntu0.20.04.5USN-5760-1
Fixed in:2.9.13+dfsg-1ubuntu0.2USN-5760-1
Fixed in:2.9.14+dfsg-1ubuntu0.1USN-5760-1
libxml2-utilsUbuntu
Fixed in:2.9.1+dfsg1-3ubuntu4.13+esm4USN-5760-2
Fixed in:2.9.3+dfsg1-1ubuntu0.7+esm4USN-5760-2
Fixed in:2.9.4+dfsg1-6.1ubuntu1.8USN-5760-1
Fixed in:2.9.10+dfsg-5ubuntu0.20.04.5USN-5760-1
Fixed in:2.9.13+dfsg-1ubuntu0.2USN-5760-1
Fixed in:2.9.14+dfsg-1ubuntu0.1USN-5760-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

6.78%probability of exploitation in 30 days
93rdpercentile

High risk: more likely to be exploited than 93% of all known CVEs.

References

Embed a live status badge for CVE-2022-40304
CVE-2022-40304 severity badge

Markdown

[![CVE-2022-40304](https://tridentstack.com/cve/badge/CVE-2022-40304.svg)](https://tridentstack.com/cve/CVE-2022-40304)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-40304"><img src="https://tridentstack.com/cve/badge/CVE-2022-40304.svg" alt="CVE-2022-40304"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-04-28.