Home

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.

PUBLISHED Reserved 2026-04-20 | Published 2026-05-26 | Updated 2026-05-26 | Assigner VulnCheck




MEDIUM: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
MEDIUM: 6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem types

Use After Free

Product status

Default status
unaffected

Any version before 5.4.3
affected

5.4.3 (custom)
unaffected

Credits

kevin-valerio reporter

References

github.com/...ibyang/security/advisories/GHSA-9f49-8x56-jmjc exploit

red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E exploit

github.com/...ibyang/security/advisories/GHSA-9f49-8x56-jmjc (GHSA Advisory GHSA-9f49-8x56-jmjc) vendor-advisory

github.com/...ommit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c patch

red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E (Anthropic CVD Finding ANT-2026-TZQ1KH7E) third-party-advisory

www.vulncheck.com/...fter-free-write-in-xml-metadata-parsing (VulnCheck Advisory: libyang - Heap Use-After-Free Write in XML Metadata Parsing) third-party-advisory

cve.org (CVE-2026-41401)

nvd.nist.gov (CVE-2026-41401)

Download JSON