CVE-2026-0989

Libxml2: unbounded relaxng include recursion leading to stack overflow

Published Jan 15, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
A flaw was identified in the RelaxNG parser of libxml2 related to how external schema inclusions are handled. The parser does not enforce a limit on inclusion depth when resolving nested <include> directives. Specially crafted or overly complex schemas can cause excessive recursion during parsing. This may lead to stack exhaustion and application crashes, creating a denial-of-service risk.

Analysis

AI-generated

Technical impact

libxml2’s RelaxNG parser processes nested <include> directives without limiting recursion depth, allowing specially crafted or deeply nested schemas to trigger stack exhaustion. The resulting overflow causes the calling application to crash, leading to a denial‑of‑service condition. The weakness corresponds to CWE‑674, which describes uncontrolled recursion. This flaw does not provide code execution or data disclosure but can disrupt availability of any service that parses untrusted RelaxNG schemas.

Affected Systems

The vulnerability affects multiple Red Hat products that bundle libxml2, including Red Hat Enterprise Linux releases 6 through 10, Red Hat Hardened Images, Red Hat JBoss Core Services, and Red Hat OpenShift Container Platform 4. The specific libxml2 version in use is not listed, but any installation of libxml2 on the affected Red Hat platforms is potentially susceptible.

Risk and Exploitability

With a CVSS score of 3.7, the vulnerability represents a low severity risk. The EPSS score of less than 1 % indicates an extremely low likelihood of exploitation. The CVE is not currently listed in the CISA KEV catalog. The likely attack vector involves an adversary supplying a malicious RelaxNG schema file to an application that processes such schemas with libxml2. No elevated privileges, network access, or local compromise are required beyond the ability to deliver an untrusted schema to the vulnerable process. If exploited, the outcome is a crash of the target application, which may affect service availability.

Remediation

Vendor Workaround

To mitigate this issue, restrict applications using libxml2 from processing untrusted RelaxNG schema files. Implement strict input validation and sanitization for all RelaxNG schema inputs to prevent the parsing of maliciously crafted, deeply nested include directives.


OpenCVE Recommended Actions

  • Restrict applications from processing untrusted RelaxNG schema files
  • Implement strict input validation and sanitization for all RelaxNG schema inputs to prevent maliciously crafted nested includes
  • Upgrade to the latest libxml2 release that limits recursion depth, once a vendor patch is available
  • If a patch is not yet available, isolate services that parse external schemas or disable schema parsing for untrusted inputs

Generated by OpenCVE AI on April 15, 2026 at 16:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4622-1 libxml2 security update
Ubuntu USN Ubuntu USN USN-7974-1 libxml2 vulnerabilities
History
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/a:redhat:openshift_ai
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat openshift Ai
Redhat rhel Els
Type Values Removed Values Added
First Time appeared Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat hummingbird
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was identified in the RelaxNG parser of libxml2 related to how external schema inclusions are handled. The parser does not enforce a limit on inclusion depth when resolving nested <include> directives. Specially crafted or overly complex schemas can cause excessive recursion during parsing. This may lead to stack exhaustion and application crashes, creating a denial-of-service risk.
Title Libxml2: unbounded relaxng include recursion leading to stack overflow
First Time appeared Redhat
Redhat enterprise Linux
Redhat jboss Core Services
Redhat openshift
Weaknesses CWE-674
CPEs cpe:/a:redhat:jboss_core_services:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat jboss Core Services
Redhat openshift
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}