JLSEC-2026-1407: Integer Overflow
libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Expat_jllto a version that resolves this vulnerability.Fixed in 2.10.0+0
Event History
Frequently Asked Questions
What input would an attacker need to provide to trigger this issue?
The attacker needs to supply an XML document containing a start tag with more than 2^30 attributes. The document is multi-gigabyte in size, so exploitation requires the affected application to parse extremely large attacker-controlled XML input.
What is the likely impact on an affected application?
The integer overflow can cause out-of-bounds writes in Expat's attribute handling. This can crash the application or corrupt heap memory; the stated impact includes integrity loss and high availability impact.
Which deployments are realistically exposed?
Deployments are exposed when they use julia/expat_jll with libexpat through 2.9.0 and parse untrusted XML documents. Services that enforce input-size limits below multi-gigabyte documents are less likely to be practically reachable through this condition.
What can be done if an update cannot be applied immediately?
Reject or cap XML inputs before parsing so that multi-gigabyte documents cannot be accepted. In particular, avoid processing documents that could contain extremely large numbers of attributes in a single start tag.