CVE-2026-76641: Expat Out-of-Bounds Read via dtdCopy

Published Aug 20, 2026
·
Updated

Expat through 2.8.3 contains an out-of-bounds read vulnerability that allows attackers to trigger memory corruption by processing XML with external entity parsers created via XMLExternalEntityParserCreate. A struct size mismatch between ELEMENTTYPE members causes storeAtts to read the attIndex member past allocated memory boundaries, resulting in failure to normalize whitespace in non-CDATA attributes or a wild pointer dereference causing a segfault. This vulnerability was introduced by the fix for CVE-2026-66046.

Affected Software

1 affected component
Expat Expat<=2.8.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Expat to a version that resolves this vulnerability.

    Fixed in 2.8.3Patch CVE-2026-66046
  2. Compensating control

    If using Expat, avoid creating external entity parsers via XML_ExternalEntityParserCreate; do not enable external entity processing so attackers cannot trigger the out-of-bounds read/memory corruption path.

Event History

Aug 20, 2026
CVE Published
via MITRE·05:31 PM
Data Sourced
via MITRE·05:31 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to the described exploit path?

Deployments using Expat through 2.8.3 are exposed when they process attacker-controlled XML using external entity parsers created with XML_ExternalEntityParserCreate.

2

What does an attacker need to do to trigger the issue?

An attacker needs to supply XML that is processed through an external entity parser created via XML_ExternalEntityParserCreate. The vulnerable path involves non-CDATA attribute handling in storeAtts.

3

What is the expected impact of successful exploitation?

The issue can cause an out-of-bounds read that may lead to a wild pointer dereference and segmentation fault. The supplied severity vector identifies availability impact, with no stated confidentiality or integrity impact.

4

What can be done while an update is not available?

Avoid processing untrusted XML through external entity parsers created with XML_ExternalEntityParserCreate where possible. That parser-creation and XML-processing path is specifically required for the described vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203