CVE-2026-6732
Medium · 6.5CVSS
6.5
EPSS
0.6%
Published
Apr 23, 2026
CISA due date
—
Cloudanix analysis
A malicious XML file can crash software that uses a vulnerable XML library, causing affected services to become unavailable.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
CVE-2026-6732 is a libxml2 memory-corruption flaw triggered during XML Schema Definition validation when processing a crafted XML document containing an internal entity reference. The malformed input can cause type confusion inside the parser/validator, resulting in an application crash. The known impact is denial of service: confidentiality and integrity are not directly affected, but availability of any application or service that parses untrusted XML with affected libxml2 versions can be disrupted.
Why it matters to the business
Applications, middleware, container workloads, and platform components that rely on libxml2 may become unavailable if they accept attacker-controlled XML or XSD-validated XML content. This can interrupt APIs, integration services, document-processing pipelines, identity or configuration workflows, and containerized services. The CVSS availability impact is high, but EPSS is currently low and the issue is not listed in CISA KEV, so remediation should be prioritized based on whether internet-facing or partner-facing services parse untrusted XML.
How an attack unfolds
An attacker first identifies an application or service that accepts XML input and validates it against an XSD using an affected libxml2 build. The attacker then submits a specially crafted XML document that includes an internal entity reference designed to exercise the vulnerable validation path. When the target application passes the document to libxml2 for schema validation, the library mishandles object types internally, causing a type confusion condition. In practical terms, the process using libxml2 can terminate unexpectedly, producing a denial of service. Repeated submissions can keep the affected service unstable until input filtering, parser hardening, rate limiting, or patched packages are applied.
How to fix it
Upgrade libxml2 and all vendor-packaged downstream components as soon as fixed packages are provided by the operating system, container base image, middleware, or platform vendor. No exact fixed versions were provided in the input, so track advisories for xmlsoft libxml2, Red Hat Enterprise Linux, Red Hat OpenShift Container Platform, Red Hat JBoss Core Services, Red Hat hardened images, and any container images or application runtimes that bundle libxml2. Rebuild and redeploy containers after base-image updates; updating the host alone may not update statically linked or image-bundled copies. As interim mitigations, avoid accepting untrusted XML where possible, disable XSD validation for untrusted documents if business logic allows, reject XML documents containing DOCTYPE or internal entity declarations unless explicitly required, enforce request size and complexity limits, isolate XML-processing workers, and apply rate limiting to XML ingestion endpoints.
How to confirm the fix worked
Confirm installed libxml2 package versions against the latest vendor advisories for each affected operating system, container image, and application runtime. Inventory both dynamically linked and bundled copies of libxml2, including container images and third-party middleware. Validate that patched packages are present after restart or redeployment by checking package manager output, image SBOMs, and runtime library paths. Exercise XML ingestion and schema-validation functionality with benign XML test cases to ensure service compatibility. Where safe and authorized, use a non-destructive regression test supplied by the vendor or security team to verify that malformed XML is rejected without crashing the process. Confirm that XML endpoints enforce limits and that monitoring detects parser crashes or abnormal worker restarts.
Typical attack path
- Identify a service, API, message queue consumer, upload feature, or middleware component that accepts XML input.
- Determine or infer that the service performs XML Schema Definition validation using libxml2 or a downstream package built on libxml2.
- Submit a crafted XML document containing an internal entity reference that reaches the vulnerable schema-validation code path.
- Trigger a libxml2 type confusion condition during XSD validation.
- Cause the hosting process, worker, or container to crash, resulting in denial of service.
- Repeat requests to sustain service disruption if restart or orchestration automatically recovers the process.
How to detect it
Look for evidence of attempted or successful denial-of-service activity against services that accept XML. Useful log sources include application logs, API gateway and WAF logs, reverse proxy access logs, message broker ingestion logs, container orchestration events, systemd journals, kernel crash logs, core dump metadata, and EDR process telemetry. Correlate XML requests containing DOCTYPE or ENTITY declarations with process crashes, segmentation faults, abnormal exits, core dumps, pod restarts, container restart loops, or sudden HTTP 500/502/503 responses. In Linux environments, search for segfaults involving libxml2 shared objects or XML-processing processes shortly after inbound XML submissions. Because exploitation causes availability impact rather than a persistent compromise, there may be no durable file, registry, or command-and-control artifact; focus on crash timing, malformed XML inputs, and repeated request patterns from the same source.
- <!ENTITY
- <!DOCTYPE
- SYSTEM "file://
- PUBLIC "-//
- xsi:schemaLocation
- xsi:noNamespaceSchemaLocation
- libxml2.so
- segfault
- Segmentation fault
- SIGSEGV
- core dumped
- systemd-coredump
- Process crashed
- CrashLoopBackOff
- Back-off restarting failed container
- xmlSchemaValidateDoc
- xmlSchemaValidateStream
What your security team should do
- Prioritize patching externally exposed, partner-facing, or unauthenticated services that parse XML and perform XSD validation.
- Inventory libxml2 usage across operating systems, container images, middleware, application runtimes, and statically linked binaries.
- Track vendor advisories for exact fixed libxml2 and downstream package versions, then rebuild and redeploy affected containers and services.
- Temporarily block or reject XML documents containing DOCTYPE or internal entity declarations where they are not business-required.
- Add monitoring for repeated process crashes, container restarts, HTTP 5xx spikes, and core dumps associated with XML-processing services.
- Apply rate limits, request size limits, and worker isolation to reduce the operational impact of repeated crash attempts.
- Review WAF, API gateway, and application logs for XML submissions containing entity declarations near the time of unexplained service crashes.
The record
A flaw was found in libxml2. This vulnerability occurs when the library processes a specially crafted XML Schema Definition (XSD) validated document that includes an internal entity reference. An attacker could exploit this by providing a malicious document, leading to a type confusion error that causes the application to crash. This results in a denial of service (DoS), making the affected system or application unavailable.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-109282 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a type confusion flaw in… CWE-843
- CVE-2026-106587 In sshd in OpenSSH before 10.6, the value "none" for a configuration option is sometimes… CWE-843
- CVE-2026-106446 Handlebars provides the power necessary to let users build semantic templates. CWE-843
- CVE-2026-101912 ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in… CWE-843
- CVE-2026-15461 The Sierra Wireless HL78xx modem GNSS driver (drivers/modem/hl78xx/, later… CWE-843
- CVE-2026-87636 Type confusion in XML in Google Chrome prior to 153.0.8010.36 allowed a remote attacker… CWE-843
- CVE-2026-87612 Type confusion in V8 in Google Chrome prior to 153.0.8010.36 allowed a remote attacker to… CWE-843
- CVE-2026-87564 Type confusion in V8 in Google Chrome prior to 153.0.8010.36 allowed a remote attacker to… CWE-843