CVE-2026-41401
libyang - Heap Use-After-Free Write in XML Metadata Parsing
- State
- Published
- Severity
- 6.9 Medium
- Published
- May 26, 2026
- Updated
- Oct 29, 2026
- Reserved
- Apr 20, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | VulnCheck |
Weaknesses
- CWE-416 Use After Free
Affected Products
| Product | Versions |
|---|---|
libyanglibyang |
|
References
- GHSA Advisory GHSA-9f49-8x56-jmjcvendor-advisory
- https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38cpatch
- Anthropic CVD Finding ANT-2026-TZQ1KH7Ethird-party-advisory
- VulnCheck Advisory: libyang - Heap Use-After-Free Write in XML Metadata Parsingthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.