Skip to main content
← All vulnerabilities
CVE-2026-41401GHSA-9F49-8X56-JMJC

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • libyang libyang

    fixed in 5.4.3

References 4

GitHub · CESNET/libyang

red.anthropic.com

vulncheck.com