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-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-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-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
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
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-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-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
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
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

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

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

Related Vulnerabilities

Other CWE-415 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-25136Medium6.590%-Fix
CVE-2018-0101Critical10.087%-Fix
CVE-2003-0545Critical9.885%-Fix
CVE-2019-3829Medium5.359%-Fix
CVE-2026-33824Critical9.856%-Fix
CVE-2021-3407Medium5.550%-Fix

Common questions

How do I fix CVE-2022-40304?

Published advisories record a fix for 15 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-40304 being actively exploited?

Not that we know of. CVE-2022-40304 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 6.8% is the estimated probability that it will be exploited in the next 30 days. That is higher than 93% of all scored CVEs.

How severe is CVE-2022-40304?

CVE-2022-40304 has a CVSS v3 base score of 7.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-40304 affect?

Published advisories record a fix for libxml2 (Debian), libxml2 (Red Hat / RHEL), libxml2 (Rocky), libxml2-debuginfo (Red Hat / RHEL), and 11 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

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.

See how it worksStart freeThis CVE lookup is free and always will be.

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.