CVE-2026-137074: libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()

Published Nov 25, 2026
·
Updated

GNOME libxml2 2.12.6 through 2.15.4 contains a NULL pointer dereference vulnerability in xmlTextReaderConstEncoding() after a reader is reset with xmlReaderNewWalker(). Because xmlCtxtReset() leaves ctxt->input NULL, querying the document encoding makes xmlGetActualEncoding() read ctxt->input->flags without a check, crashing the application and causing denial of service.

Affected Software

1 affected component
Gnome libxml2>=2.12.6<=2.15.4

Event History

Nov 25, 2026
CVE Published
via MITRE·07:33 PM
Data Sourced
via MITRE·07:33 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What application behavior is required to trigger the crash?

An application must reset an XML reader with xmlReaderNewWalker() and then call xmlTextReaderConstEncoding(). In the affected state, the reset leaves ctxt->input NULL and the encoding query can dereference it.

2

What is the security impact if the flaw is triggered?

The documented impact is denial of service due to an application crash. The provided vector indicates no confidentiality or integrity impact.

3

What versions should be reviewed?

Review deployments using GNOME libxml2 versions 2.12.6 through 2.15.4, especially applications that use the XML reader APIs and the reset-and-encoding-query sequence.

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