Description
libyang before 5.2.6 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.
Problem types
Product status
Any version before 5.4.3
5.4.3 (custom)
Credits
kevin-valerio
References
github.com/...ibyang/security/advisories/GHSA-9f49-8x56-jmjc
red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E
github.com/...ibyang/security/advisories/GHSA-9f49-8x56-jmjc (GHSA Advisory GHSA-9f49-8x56-jmjc)
github.com/...ommit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c
red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E (Anthropic CVD Finding ANT-2026-TZQ1KH7E)
www.vulncheck.com/...fter-free-write-in-xml-metadata-parsing (VulnCheck Advisory: libyang - Heap Use-After-Free Write in XML Metadata Parsing)