CVE Catalog

CVE-2026-41401

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.67%

52th percentile - higher than 52% of all known CVEs

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 it by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data.

Risk Assessment

An attacker can cause a process crash or potential code execution by submitting a malicious XML document to an application using libyang. The risk affects services parsing untrusted YANG XML data.

Recommendation

Update libyang to version 5.4.3 or later. Validate and restrict untrusted XML data submitted to applications.

Other vulnerabilities in libyang

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS