GHSA-9f49-8x56-jmjc: libyang - Heap Use-After-Free Write in XML Metadata Parsing
libyang before 5.4.3 contains a heap use-after-free write vulnerability in lydparsersetdataflags 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libyangto a version that resolves this vulnerability.Fixed in 5.4.3