CVEfocus › CVE database › CVE-2025-6170

CVE-2025-6170Libxml2: stack buffer overflow in xmllint interactive shell command handling

CVSS 2.5 LowEPSS 0.3% (higher than 15% of CVEs)Published 2025-06-16Updated 2026-11-06Assigner: redhat

A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files. When a user inputs an overly long command, the program does not check the input size properly, which can cause it to crash. This issue might allow attackers to run harmful code in rare configurations without modern protections.

CWE-121

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

32Fixed
4Fix pending
8Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libxml2Fixed2.9.14+dfsg-1.3ubuntu3.4UBUNTU-CVE-2025-6170
Ubuntu 22.04libxml2Fixed2.9.13+dfsg-1ubuntu0.8UBUNTU-CVE-2025-6170
Ubuntu 20.04libxml2Fix pending2.9.10+dfsg-5ubuntu0.20.04.10+esm1 (Ubuntu Pro)UBUNTU-CVE-2025-6170
Ubuntu 18.04libxml2Fix pending2.9.4+dfsg1-6.1ubuntu1.9+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-6170
Ubuntu 16.04libxml2Fix pending2.9.3+dfsg1-1ubuntu0.7+esm9 (Ubuntu Pro)UBUNTU-CVE-2025-6170
Ubuntu 14.04libxml2Fix pending2.9.1+dfsg1-3ubuntu4.13+esm8 (Ubuntu Pro)UBUNTU-CVE-2025-6170
Debian 14libxml2Fixed2.12.7+dfsg+really2.9.14-2.1DEBIAN-CVE-2025-6170
Debian 13libxml2Fixed2.12.7+dfsg+really2.9.14-2.1DEBIAN-CVE-2025-6170
Debian 12libxml2Fixed2.9.14+dfsg-1.3~deb12u3DEBIAN-CVE-2025-6170
Red Hat Enterprise Linux 10libxml2Fixed0:2.12.5-10.el10_2.2RHSA-2026:39304
Red Hat Enterprise Linux 10libxml2-develFixed0:2.12.5-10.el10_2.2RHSA-2026:39304
Red Hat Enterprise Linux 10libxml2-staticFixed0:2.12.5-10.el10_2.2RHSA-2026:39304
Red Hat Enterprise Linux 10python3-libxml2Fixed0:2.12.5-10.el10_2.2RHSA-2026:39304
Red Hat Enterprise Linux 9libxml2Fixed0:2.9.13-14.el9_8.2RHSA-2026:39317
Red Hat Enterprise Linux 9libxml2-develFixed0:2.9.13-14.el9_8.2RHSA-2026:39317
Red Hat Enterprise Linux 9python3-libxml2Fixed0:2.9.13-14.el9_8.2RHSA-2026:39317
Red Hat Enterprise Linux 8libxml2Fixed0:2.9.7-21.el8_10.6RHSA-2026:36734
Red Hat Enterprise Linux 8libxml2-develFixed0:2.9.7-21.el8_10.6RHSA-2026:36734
Red Hat Enterprise Linux 8python3-libxml2Fixed0:2.9.7-21.el8_10.6RHSA-2026:36734
Red Hat Enterprise Linux 7libxml2Will not fix
Out of support scope
Red Hat Enterprise Linux 7libxml2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libxml2-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7libxml2-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2Will not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-staticWill not fix
Out of support scope
AlmaLinux 10libxml2Fixed2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux 10libxml2-develFixed2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux 10libxml2-staticFixed2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux 10python3-libxml2Fixed2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux 9libxml2Fixed2.9.13-14.el9_8.2ALSA-2026:39317
AlmaLinux 9libxml2-develFixed2.9.13-14.el9_8.2ALSA-2026:39317
AlmaLinux 9python3-libxml2Fixed2.9.13-14.el9_8.2ALSA-2026:39317
AlmaLinux 8libxml2Fixed2.9.7-21.el8_10.6ALSA-2026:36734
AlmaLinux 8libxml2-develFixed2.9.7-21.el8_10.6ALSA-2026:36734
AlmaLinux 8python3-libxml2Fixed2.9.7-21.el8_10.6ALSA-2026:36734
Rocky Linux 10libxml2Fixed0:2.12.5-10.el10_2.2RLSA-2026:39304
Rocky Linux 9libxml2Fixed0:2.9.13-14.el9_8.2RLSA-2026:39317
Rocky Linux 8libxml2Fixed0:2.9.7-21.el8_10.6RLSA-2026:36734
Alpine Linux 3.24libxml2Fixed2.13.9-r0ALPINE-CVE-2025-6170
Alpine Linux 3.23libxml2Fixed2.13.9-r0ALPINE-CVE-2025-6170
Alpine Linux 3.22libxml2Fixed2.13.9-r0ALPINE-CVE-2025-6170
Alpine Linux 3.21libxml2Fixed2.13.9-r0ALPINE-CVE-2025-6170

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to a widespread installation base, or stability. It is strongly recommended to apply the upstream patch once available.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.