CVE-2026-41401CWE-416

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

Medium · published May 26, 2026

CVSS v4.0
6.9
EPSS
1%
Percentile
50.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
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
EPSS
0.00641 · 50.0th percentile
Weakness
CWE-416 · Use After Free
Published
2026-05-26T14:08Z
EPSS history
Timeline
  • 26 MAY 14:08Z
    libyang - Heap Use-After-Free Write in XML Metadata Parsing
    cvelistv5