Skip to content
Fencer Vulns
medium 6.5

CVE-2022-29824 json

In libxml2 before 2.9.14, several buffer handling functions in buf.c (`xmlBuf*`) and tree.c...

published 2022-05-03 4 y ago modified 2026-10-14 25 d ago also EUVD-2022-34142 , JLSEC-2025-75

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.8%
EPSS 3.8% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is affected as well.

Patch / fix

  • julia XML2_jll 2.9.14+0
  • julia XSLT_jll 1.1.41+0
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • libxml2 Debian 14, Debian 13, Debian 12 2.9.14+dfsg-1

debian advisories DEBIAN-CVE-2022-29824

  • libxml2 Ubuntu 18.04 LTS 2.9.4+dfsg1-6.1ubuntu1.6
  • libxml2 Ubuntu 20.04 LTS 2.9.10+dfsg-5ubuntu0.20.04.3
  • libxml2 Ubuntu 22.04 LTS 2.9.13+dfsg-1ubuntu0.1
  • libxml2 Ubuntu Pro 14.04 LTS 2.9.1+dfsg1-3ubuntu4.13+esm3
  • libxml2 Ubuntu Pro 16.04 LTS 2.9.3+dfsg1-1ubuntu0.7+esm2

ubuntu advisories UBUNTU-CVE-2022-29824

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libxml2 RHEL 9 2.9.13-1.el9_0.1
  • python3-libxml2 RHEL 9 2.9.13-1.el9_0.1
  • libxml2 RHEL 8 2.9.7-13.el8_6.1
  • python3-libxml2 RHEL 8 2.9.7-13.el8_6.1

red hat advisories RHSA-2022:5250RHSA-2022:5317

  • libxml2 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +14 more 2.9.7-150000.3.57.1
  • python-libxml2-python SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +14 more 2.9.7-150000.3.57.1
  • libxml2 SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 2.9.14-150400.5.7.1
  • libxml2-python SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 2.9.14-150400.5.7.1
  • libxml2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 2.9.4-46.54.3
  • python-libxml2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 2.9.4-46.54.3
  • libxml2 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 2.9.7-150000.3.46.1
  • python-libxml2-python SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +21 more 2.9.7-150000.3.46.1

suse advisories SUSE-SU-2023:2048-1SUSE-SU-2022:2552-1SUSE-SU-2022:1833-1SUSE-SU-2022:1750-1

  • rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
  • rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
  • rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
  • libxml2 openSUSE Tumbleweed 2.9.14-1.1
  • rubygem-nokogiri openSUSE Tumbleweed 1.13.6-1.1
  • ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.13.9-1.7

opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:12043-1openSUSE-SU-2024:12085-1openSUSE-SU-2024:13165-1

  • libxml2 Rocky Linux 8 2.9.7-13.el8_6.1
  • libxml2 Rocky Linux 9 2.9.13-1.el9_0.1

rocky linux advisories RLSA-2022:5317RLSA-2022:5250

  • libxml2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 2.9.14-r0

alpine advisories ALPINE-CVE-2022-29824

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libxml2 CBL-Mariner 2.0 2.9.14-1
  • libxslt CBL-Mariner 2.0 1.1.34-7

azure linux advisories AZL-9616AZL-9617

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • libxml2 Arch Linux 2.9.14-1

arch linux advisories AVG-2726

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-29824 updated cvss 7.4

libxml2: integer overflows in xmlBuf and xmlBuffer lead to out-of-bounds write

  • Red Hat Enterprise Linux 6 libxml2, libxml2-python Red Hat Enterprise Linux 7 libxml2, libxml2-python
    affected: workaround, no fix planned “Avoid passing large inputs to the libxml2 library.”
  • Red Hat Enterprise Linux AppStream (v. 8) libxml2-devel 2.9.7-13.el8_6.1, libxml2-debuginfo 2.9.7-13.el8_6.1, libxml2-debugsource 2.9.7-13.el8_6.1, python3-libxml2-debuginfo 2.9.7-13.el8_6.1
    fixed: vendor fix “Avoid passing large inputs to the libxml2 library.” RHSA-2022:5317
  • Red Hat Enterprise Linux AppStream (v. 9) libxml2-devel 2.9.13-1.el9_0.1, libxml2-debuginfo 2.9.13-1.el9_0.1, libxml2-debugsource 2.9.13-1.el9_0.1, python3-libxml2-debuginfo 2.9.13-1.el9_0.1
    fixed: vendor fix “Avoid passing large inputs to the libxml2 library.” RHSA-2022:5250
  • Red Hat Enterprise Linux BaseOS (v. 8) libxml2 2.9.7-13.el8_6.1, python3-libxml2 2.9.7-13.el8_6.1
    fixed: vendor fix “Avoid passing large inputs to the libxml2 library.” RHSA-2022:5317
  • Red Hat Enterprise Linux BaseOS (v. 9) libxml2 2.9.13-1.el9_0.1, python3-libxml2 2.9.13-1.el9_0.1
    fixed: vendor fix “Avoid passing large inputs to the libxml2 library.” RHSA-2022:5250
  • Red Hat JBoss Core Services
    fixed: vendor fix “Avoid passing large inputs to the libxml2 library.” RHSA-2022:8841

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-23-348-10 updated cvss 6.5

Siemens SIMATIC S7-1500

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5
    affected: fixed in V3.1.5, mitigation support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

3.75% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • packetstormsecurity.com http://packetstormsecurity.com/files/167345/libxml2-xmlBufAdd-Heap-Buffer-Overflow.html referenced PoC, tagged "exploit" by a source, unverified
  • packetstormsecurity.com http://packetstormsecurity.com/files/169825/libxml2-xmlParseNameComplex-Integer-Overflow.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia XML2_jll
<2.9.14+0
2.9.14+0
julia XSLT_jll
<1.1.41+0
1.1.41+0

Affected products

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.