CVE-2026-41401
libyang before 5.2.6 contains a heap use-after-free write …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c
- github.com/CESNET/libyang/security/advisories/GHSA-9f49-8x56-jmjc
- red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E
- www.vulncheck.com/advisories/libyang-heap-use-after-free-write-in-xml-metadata-parsing
- nvd.nist.gov/vuln/detail/CVE-2026-41401
- cve.org/CVERecord?id=CVE-2026-41401
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.