CVE-2026-41401: libyang Use After Free
Vulnerability summary
CVE-2026-41401 is a high (CVSS 7.1) Use After Free vulnerability in libyang. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 50% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 6 · Related 6Timeline
- 26-05-2026PublishedVulnerability first disclosed.
- 26-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 4 sources · 2 versions- CVE.orgCNA6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.64%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
+0.12 pp
From 0.52% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian2 products
- libyangAll versions (No fix recorded) | < 6.4.13-1
- libyang2All versions (No fix recorded)
Libyang1 product
- libyang< 5.4.3
Mageia1 product
- libyang< 3.13.5-1.1.mga10
Opensuse1 product
- libyang&distro=openSUSE Tumbleweed< 3.13.6-2.1
Ubuntu1 product
- libyangAll versions (No fix recorded) | < 3.13.5-2ubuntu0.1 | < 3.13.6-1ubuntu0.1
5 vendors · 6 products
References
12 links- www.vulncheck.com/advisories/libyang-heap-use-after-free-write-in-xml-metadata-parsingThird Party AdvisoryREPORT