Vulnerability · Published Jun 16, 2025 · Assigned by redhat

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

Low 2.5

In plain English

A low-severity stack buffer overflow in libxml2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.5Low
Exploit odds (30 days)0.3%top 74.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10libxml22.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux:8libxml22.9.7-21.el8_10.6ALSA-2026:36734
AlmaLinux:9libxml22.9.13-14.el9_8.2ALSA-2026:39317
AlmaLinux:10libxml2-devel2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux:8libxml2-devel2.9.7-21.el8_10.6ALSA-2026:36734
AlmaLinux:9libxml2-devel2.9.13-14.el9_8.2ALSA-2026:39317
AlmaLinux:10libxml2-static2.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux:10python3-libxml22.12.5-10.el10_2.2ALSA-2026:39304
AlmaLinux:8python3-libxml22.9.7-21.el8_10.6ALSA-2026:36734
AlmaLinux:9python3-libxml22.9.13-14.el9_8.2ALSA-2026:39317
Alpine:v3.21libxml22.13.9-r0ALPINE-CVE-2025-6170
Alpine:v3.22libxml22.13.9-r0ALPINE-CVE-2025-6170
Alpine:v3.23libxml22.13.9-r0ALPINE-CVE-2025-6170
Alpine:v3.24libxml22.13.9-r0ALPINE-CVE-2025-6170
Debian:12libxml22.9.14+dfsg-1.3~deb12u3DEBIAN-CVE-2025-6170
Debian:13libxml22.12.7+dfsg+really2.9.14-2.1DEBIAN-CVE-2025-6170
Debian:14libxml22.12.7+dfsg+really2.9.14-2.1DEBIAN-CVE-2025-6170
Rocky Linux:10libxml20:2.12.5-10.el10_2.2RLSA-2026:39304
Rocky Linux:8libxml20:2.9.7-21.el8_10.6RLSA-2026:36734
Rocky Linux:9libxml20:2.9.13-14.el9_8.2RLSA-2026:39317
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8USN-7694-1
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8UBUNTU-CVE-2025-6170
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4USN-7694-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4UBUNTU-CVE-2025-6170

Affected products (as reported)

VendorProductVersions
libxml2 0 – before 2.14.5
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.20 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.20 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.20 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.20 see references

Weakness: CWE-121 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L

References