CVE-2025-6170
Libxml2: stack buffer overflow in xmllint interactive shell command handling
Reported by redhat · Published June 16, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libxml2-debuginfo | errata.rockylinux.org | 2.12.5-10.el10, 2.9.13-14.el9, 2.9.7-21.el8 |
| libxml2-debugsource | errata.rockylinux.org | 2.12.5-10.el10, 2.9.13-14.el9, 2.9.7-21.el8 |
| libxml2-devel | errata.rockylinux.org | 2.12.5-10.el10, 2.9.13-14.el9, 2.9.7-21.el8 |
| python3-libxml2-debuginfo | errata.rockylinux.org | 2.12.5-10.el10, 2.9.13-14.el9, 2.9.7-21.el8 |
| libxml2 | errata.rockylinux.org | 2.12.5-10.el10, 2.9.13-14.el9, 2.9.7-21.el8 |
| libxml2 | Alpine | 2.13.9-r0 |
| libxml2 | gitlab.gnome.org | 2.14.5 |
| python3-libxml2 | errata.rockylinux.org | 2.9.13-14.el9, 2.9.7-21.el8 |
| libxml2-static | errata.rockylinux.org | 2.12.5-10.el10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:2.12.5-10.el10_2.2 |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | 0:2.12.5-9.el10_0.2 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.7-21.el8_10.6 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.9.7-21.el8_10.6 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:2.9.7-9.el8_4.20 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | 0:2.9.7-9.el8_4.20 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:2.9.7-13.el8_6.15 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | 0:2.9.7-13.el8_6.15 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:2.9.7-16.el8_8.15 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:2.9.7-16.el8_8.15 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:2.9.13-14.el9_8.2 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:2.9.13-14.el9_8.2 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | 0:2.9.13-3.el9_2.12 |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | 0:2.9.13-13.el9_4.2 |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | 0:2.9.13-12.el9_6.3 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 | 1791371080 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 | 1791371069 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 | 1791788287 |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 | 1791378395 |
…and 192 more
Timeline
- Jun 16, 2025 CVE Published
- Jun 17, 2025 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Jun 2, 2026 Security Advisory (84 in total, the first dated here)
- Jul 8, 2026 Distribution Patch (85 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-6170
vulnetix vdb fixes CVE-2025-6170
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-6170/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2026:36734 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:39304 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:39317 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:44481 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:46836 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:53371 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:58981 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:70596 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:70639 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72394 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72395 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72399 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72470 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72475 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72476 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:72502 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:73859 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:73909 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:73929 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:73930 vendor-advisoryx_refsource_REDHAT
…and 65 more