Skip to content
← Vulnerability catalog
OFFICIAL CVE RECORD6.9 Medium

CVE-2026-41401

libyang - Heap Use-After-Free Write in XML Metadata Parsing

Description

libyang before 5.4.3 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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

libyang libyang

Default version status: unaffected

  • 0 to < 5.4.3affected
  • 5.4.3unaffected

References