CVE-2022-40304

Summary

CVECVE-2022-40304
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-11-23 18:15:12 UTC
Updated2026-10-14 18:17:05 UTC
DescriptionAn 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

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

Problem Types: CWE-415 | n/a | CWE-415 CWE-415 Double Free


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.1ADPDECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Apple Ipados All All All All
Operating System Apple Iphone Os All All All All
Operating System Apple Macos All All All All
Application Netapp Active Iq Unified Manager - All All All
Application Netapp Clustered Data Ontap - All All All
Application Netapp Clustered Data Ontap Antivirus Connector - All All All
Hardware Netapp H300s - All All All
Operating System Netapp H300s Firmware - All All All
Hardware Netapp H410c - All All All
Operating System Netapp H410c Firmware - All All All
Hardware Netapp H410s - All All All
Operating System Netapp H410s Firmware - All All All
Hardware Netapp H500s - All All All
Operating System Netapp H500s Firmware - All All All
Hardware Netapp H700s - All All All
Operating System Netapp H700s Firmware - All All All
Application Netapp Manageability Software Development Kit - All All All
Application Netapp Smi-s Provider - All All All
Application Netapp Snapmanager - All All All
Application Xmlsoft Libxml2 All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified

References

ReferenceSourceLinkTags
cert-portal.siemens.com/productcert/html/ssa-398330.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
About the security content of watchOS 9.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
[CVE-2022-40304] Fix dict corruption caused by entity reference cycles (1b41ec4e) · Commits · GNOME / libxml2 · GitLab af854a3a-2127-422b-91ae-364da2661108 gitlab.gnome.org Patch, Third Party Advisory
Full Disclosure: APPLE-SA-2022-12-13-5 macOS Monterey 12.6.2 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
About the security content of macOS Big Sur 11.7.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
Full Disclosure: APPLE-SA-2022-12-13-6 macOS Big Sur 11.7.2 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
November 2022 Libxml2 Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-556635.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
Full Disclosure: APPLE-SA-2022-12-13-2 iOS 15.7.2 and iPadOS 15.7.2 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
v2.10.3 · Tags · GNOME / libxml2 · GitLab af854a3a-2127-422b-91ae-364da2661108 gitlab.gnome.org Patch, Release Notes, Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-769027.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-625862.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-337522.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
About the security content of iOS 15.7.2 and iPadOS 15.7.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-341067.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
Full Disclosure: APPLE-SA-2022-12-13-8 watchOS 9.2 af854a3a-2127-422b-91ae-364da2661108 seclists.org
About the security content of macOS Monterey 12.6.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
About the security content of tvOS 16.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
Tags · GNOME / libxml2 · GitLab af854a3a-2127-422b-91ae-364da2661108 gitlab.gnome.org Release Notes, Third Party Advisory
seclists.org/fulldisclosure/2022/Dec/26 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 160396 Oracle Enterprise Linux Security Update for libxml2 (ELSA-2023-0173)
  • 160413 Oracle Enterprise Linux Security Update for libxml2 (ELSA-2023-0338)
  • 181179 Debian Security Update for libxml2 (DLA 3172-1)
  • 181192 Debian Security Update for libxml2 (DSA 5271-1)
  • 183528 Debian Security Update for libxml2 (CVE-2022-40304)
  • 199063 Ubuntu Security Notification for libxml2 Vulnerabilities (USN-5760-1)
  • 241064 Red Hat Update for libxml2 (RHSA-2023:0173)
  • 241093 Red Hat Update for libxml2 (RHSA-2023:0338)
  • 242753 Red Hat Update for libxml2 (RHSA-2024:0413)
  • 283234 Fedora Security Update for libxml2 (FEDORA-2022-aeafd24818)
  • 283465 Fedora Security Update for libxml2 (FEDORA-2022-a6812b0224)
  • 330130 IBM AIX Arbitrary Code Execution Vulnerability in libxml2 (libxml2_advisory3)
  • 354430 Amazon Linux Security Advisory for libxml2 : ALAS2022-2022-258
  • 354487 Amazon Linux Security Advisory for xmlsec1 : ALAS2022-2022-257
  • 354559 Amazon Linux Security Advisory for xmlsec1 : ALAS-2022-257
  • 354560 Amazon Linux Security Advisory for libxml2 : ALAS-2022-258
  • 354834 Amazon Linux Security Advisory for libxml2 : ALAS2-2023-1996
  • 354929 Amazon Linux Security Advisory for libxml2 : ALAS-2023-1743
  • 355209 Amazon Linux Security Advisory for libxml2 : ALAS2023-2023-096
  • 355268 Amazon Linux Security Advisory for xmlsec1 : ALAS2023-2023-097
  • 377762 Apple MacOS Ventura 13.0.1 Not Installed (HT213504)
  • 377831 Apple macOS Monterey 12.6.2 Not Installed (HT213533)
  • 377832 Apple macOS Big Sur 11.7.2 Not Installed (HT213534)
  • 377902 Alibaba Cloud Linux Security Update for libxml2 (ALINUX3-SA-2023:0008)
  • 378433 Oracle Hypertext Transfer Protocol Server (HTTP Server) Server Multiple Vulnerabilities (CPUAPR2023)
  • 378599 Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)
  • 502547 Alpine Linux Security Update for libxml2
  • 502741 Alpine Linux Security Update for libxml2
  • 610450 Apple iOS 16.1.1 and iPadOS 16.1.1 Security Update Missing
  • 610455 Apple iOS 15.7.2 and iPadOS 15.7.2 Security Update Missing
  • 672422 EulerOS Security Update for libxml2 (EulerOS-SA-2022-2800)
  • 672493 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1016)
  • 672514 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1041)
  • 672550 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1130)
  • 672571 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1106)
  • 672616 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1393)
  • 672665 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1365)
  • 672769 EulerOS Security Update for libxml2 (EulerOS-SA-2023-1510)
  • 710675 Gentoo Linux libxml2 Multiple Vulnerabilities (GLSA 202210-39)
  • 752695 SUSE Enterprise Linux Security Update for libxml2 (SUSE-SU-2022:3692-1)
  • 752722 SUSE Enterprise Linux Security Update for libxml2 (SUSE-SU-2022:3717-1)
  • 752764 SUSE Enterprise Linux Security Update for libxml2 (SUSE-SU-2022:3871-1)
  • 904575 Common Base Linux Mariner (CBL-Mariner) Security Update for libxml2 (11505)
  • 904587 Common Base Linux Mariner (CBL-Mariner) Security Update for libxml2 (11500)
  • 904623 Common Base Linux Mariner (CBL-Mariner) Security Update for libxml2 (11505-1)
  • 904631 Common Base Linux Mariner (CBL-Mariner) Security Update for libxml2 (11500-1)
  • 940884 AlmaLinux Security Update for libxml2 (ALSA-2023:0173)
  • 940901 AlmaLinux Security Update for libxml2 (ALSA-2023:0338)
  • 960535 Rocky Linux Security Update for libxml2 (RLSA-2023:0173)
  • 960547 Rocky Linux Security Update for libxml2 (RLSA-2023:0338)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report