cve.bz

CVE-2026-86140 xmlsoft libxml2: Stack-based Buffer Overflow

7.8 highEPSS 0.2%Fix available

High (7.8) in xmlsoft libxml2. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-86140 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-86140?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-86140?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-86140 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
xmlsoft libxml2before 2.15.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libxml2no fix listedDEBIAN-CVE-2026-86140
Debian14libxml22.15.4+dfsg-1DEBIAN-CVE-2026-86140
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.13UBUNTU-CVE-2026-86140 USN-8787-1
Ubuntu24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.9UBUNTU-CVE-2026-86140 USN-8787-1
Ubuntu26.04:LTSlibxml22.15.2+dfsg-0.1ubuntu0.2UBUNTU-CVE-2026-86140 USN-8787-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm12UBUNTU-CVE-2026-86140 USN-8787-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm13UBUNTU-CVE-2026-86140 USN-8787-1
UbuntuPro:18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.9+esm8UBUNTU-CVE-2026-86140 USN-8787-1
UbuntuPro:20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.10+esm5UBUNTU-CVE-2026-86140 USN-8787-1
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-21.el8_10.9RHSA-2026:71641
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-21.el8_10.9RHSA-2026:71641
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-14.el9_8.5RHSA-2026:71585
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-18.el9_9.1RHSA-2026:98468
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-14.el9_8.5RHSA-2026:71585
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-18.el9_9.1RHSA-2026:98468
Red Hatenterprise_linux:10.2libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-10.el10_2.4RHSA-2026:71586
Red Hatenterprise_linux:10.3libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-15.el10_3.2RHSA-2026:98572
Red Hatenterprise_linux_eus:10.0libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-9.el10_0.9RHSA-2026:89759
Red Hathummingbird:1libxml2, libxml2-16, libxml2-devel and 2 more0:2.15.4-0.1.hum1RHSA-2026:64463
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.20RHSA-2026:93473
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.20RHSA-2026:93473
11 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8libxml2, libxml2-devel, python3-libxml22.9.7-21.el8_10.9ALSA-2026:71641
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-14.el9_8.5ALSA-2026:71585
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-18.el9_9.1ALSA-2026:98468
AlmaLinux10libxml2, libxml2-devel, libxml2-static and 1 more2.12.5-10.el10_2.4ALSA-2026:71586
AlmaLinux10libxml2, libxml2-devel, libxml2-static and 1 more2.12.5-15.el10_3.2ALSA-2026:98572
Rocky Linux8libxml20:2.9.7-21.el8_10.9RLSA-2026:71641
Rocky Linux9libxml20:2.9.13-14.el9_8.5RLSA-2026:71585
Rocky Linux9libxml2, libxml2-devel, python3-libxml2 and 3 more0:2.9.13-18.el9_9.1RLSA-2026:98468
Rocky Linux10libxml20:2.12.5-10.el10_2.4RLSA-2026:71586
Rocky Linux10libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-15.el10_3.2RLSA-2026:98572
Azure Linux3libxml22.11.5-11AZL-99717
Alpaquita23libxml22.10.4-r11BELL-CVE-2026-86140
Alpaquita25libxml22.13.9-r5BELL-CVE-2026-86140
Alpaquitastreamlibxml22.13.9-r6BELL-CVE-2026-86140
BellSoft Hardened Containers23libxml22.10.4-r11BELL-CVE-2026-86140
BellSoft Hardened Containers25libxml22.13.9-r5BELL-CVE-2026-86140
BellSoft Hardened Containersstreamlibxml22.13.9-r6BELL-CVE-2026-86140

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in libxml2 allows a local attacker to achieve arbitrary code execution due to a stack-based buffer overflow. While requiring local access, the vulnerability's presence in a fundamental system library could lead to significant system compromise if exploited.

Red Hat's mitigation

To mitigate this, administrators should disable DTD processing and validation for untrusted documents within libxml2 parsers and restrict network access so only authorized users can submit XML data to the application. For robust defense-in-depth against buffer overflow exploitation, ensure the library and dependent applications are compiled with memory safety flags like stack canaries (-fstack-protector-strong) and bounds checking (_FORTIFY_SOURCE=2), while verifying that standard OS-level protections such as ASLR and Data Execution Prevention (NX/XD Bit) are active on the host system.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libxml2-0:2.12.5-10.el10_2.4Fixed 2026-09-24RHSA-2026:71586
Red Hat Enterprise Linux 10libxml2-0:2.12.5-15.el10_3.2Fixed 2026-11-11RHSA-2026:98572
Red Hat Enterprise Linux 10.0 Extended Update Supportlibxml2-0:2.12.5-9.el10_0.9Fixed 2026-10-26RHSA-2026:89759
Red Hat Enterprise Linux 7 Extended Lifecycle Supportlibxml2-0:2.9.1-6.el7_9.20Fixed 2026-11-02RHSA-2026:93791
Red Hat Enterprise Linux 8libxml2-0:2.9.7-21.el8_10.9Fixed 2026-09-24RHSA-2026:71641
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-9.el8_4.20Fixed 2026-11-02RHSA-2026:93473
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibxml2-0:2.9.7-9.el8_4.20Fixed 2026-11-02RHSA-2026:93473
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-13.el8_6.24Fixed 2026-10-29RHSA-2026:92589
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onlibxml2-0:2.9.7-13.el8_6.24Fixed 2026-10-29RHSA-2026:92589
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibxml2-0:2.9.7-16.el8_8.24Fixed 2026-11-02RHSA-2026:93463
Red Hat Enterprise Linux 10podmanNot affected
Red Hat Enterprise Linux 6libxml2Out of support scope
Red Hat Enterprise Linux 8container-tools:rhel8/podmanNot affected
Red Hat Enterprise Linux 9podmanNot affected
Red Hat Hardened Imagesswift-langNot affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-llmisvc-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-model-serving-api-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
46 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-86140.

References

Check your stackJSON