U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.


Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

NOTICE UPDATED - May, 29th 2024

The NVD has a new announcement page with status updates, news, and how to stay connected!

CVE-2022-40304 Detail


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.


NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://seclists.org/fulldisclosure/2022/Dec/21 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2022/Dec/24 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2022/Dec/25 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2022/Dec/26 Mailing List  Third Party Advisory 
https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b Patch  Third Party Advisory 
https://gitlab.gnome.org/GNOME/libxml2/-/tags Release Notes  Third Party Advisory 
https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3 Patch  Release Notes  Third Party Advisory 
https://security.netapp.com/advisory/ntap-20221209-0003/ Third Party Advisory 
https://support.apple.com/kb/HT213531 Third Party Advisory 
https://support.apple.com/kb/HT213533 Third Party Advisory 
https://support.apple.com/kb/HT213534 Third Party Advisory 
https://support.apple.com/kb/HT213535 Third Party Advisory 
https://support.apple.com/kb/HT213536 Third Party Advisory 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-415 Double Free cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

9 change records found show changes

Quick Info

CVE Dictionary Entry:
NVD Published Date:
NVD Last Modified: