Use After Free in Libyang
CVE-2026-41401
- CVSS v3
- 6.5 Medium
- Public exploits
- None known
- EPSS
- 0.007 · 53.1th percentile
- Published
- 2026-05-26
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.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.007, 53.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Libyang — versions 0, 5.4.3
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-9f49-8x56-jmjc) (vendor-advisory)
- https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c (patch)
- Anthropic CVD Finding ANT-2026-TZQ1KH7E (third-party-advisory)
- VulnCheck Advisory: libyang - Heap Use-After-Free Write in XML Metadata Parsing (third-party-advisory)