Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged management account
-
DeliveryCraft YANG XML with malicious default metadata
-
ExploitSubmit to NETCONF/RESTCONF endpoint
-
ExecutionTrigger UAF in lyd_parser_set_data_flags
-
PersistCorrupt heap on freed metadata entry
-
ImpactCrash daemon or pivot to code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the target to use libyang to parse attacker-supplied YANG XML, and the attacker must already have low-privileged access (CVSS PR:L) - typically an authenticated NETCONF/RESTCONF or sysrepo client account on a network device or management plane. The malicious payload must specifically include default metadata attributes that trigger freeing of a non-head entry in the metadata list, exercising lyd_parser_set_data_flags. Limiting factors: no user interaction is needed (UI:N) and the attack vector is network (AV:N), but PR:L excludes fully unauthenticated attackers, and only applications that actually expose libyang-backed XML parsing to clients are exposed - pure schema-compile or trusted-input deployments are not in scope. |
| Impact | CVSS 4.0 7.1 reflects AV:N/AC:L with PR:L and only availability impact (VA:H), which is consistent with a parser-side crash from a malformed document submitted by a low-privileged client; SSVC corroborates this with Exploitation:poc, Automatable:no, Technical Impact:partial. EPSS at 0.03% (9th percentile) and absence from CISA KEV indicate no observed mass exploitation, and no public exploit was identified at time of analysis despite VulnCheck reporting. There is a notable data conflict: the CVE description sets the fixed version at 5.2.6, while the EUVD record lists affected range as 0 <5.4.3 - defenders should verify the authoritative fix version with the upstream GHSA-9f49-8x56-jmjc advisory before deploying. Also note CVSS scores VC:N/VI:N (no confidentiality or integrity impact) yet the description mentions 'potential code execution,' so memory-corruption-to-RCE is theoretically possible but not reflected in the vector - treat the realistic priority as a denial-of-service issue against network management daemons unless the GHSA upgrades that assessment. |
| Exploit ScenarioDerived | An attacker with low-privileged access to a NETCONF or RESTCONF endpoint (or any application that hands user-supplied XML to libyang) submits a crafted YANG XML document containing specific default metadata attributes that exercise the non-head free path in lyd_parser_set_data_flags. The use-after-free write corrupts heap state, most reliably crashing the management daemon and disrupting network configuration services; code execution is theoretically possible but no public exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Heap use-after-free write in libyang before 5.2.6 enables remote authenticated attackers to crash processes or potentially execute code by submitting crafted YANG XML documents to applications using the library for parsing. The flaw resides in lyd_parser_set_data_flags, which mishandles metadata list pointers when freeing non-head default metadata entries. No public exploit identified at time of analysis, EPSS is low at 0.03%, and SSVC rates technical impact as partial with no automatable exploitation.
RemediationAI
Upgrade libyang to the patched release identified by CESNET (the CVE text cites 5.2.6; the EUVD record implies 5.4.3 - confirm the exact version via the GHSA-9f49-8x56-jmjc advisory at https://github.com/CESNET/libyang/security/advisories/GHSA-9f49-8x56-jmjc, with the fix commit at https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c). For Red Hat and SUSE deployments, apply the distribution-provided libyang package update once published. Where immediate patching is not possible, restrict the ability of low-privileged users to submit arbitrary YANG XML to NETCONF/RESTCONF or sysrepo endpoints by tightening NACM/AAA rules and network ACLs on management interfaces, and consider validating or rejecting client-supplied XML containing unexpected metadata attributes at a proxy; the trade-off is potential disruption of legitimate management automation that relies on those metadata extensions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libyang is the CESNET-maintained C library that parses, validates, and manipulates YANG-modeled data, widely embedded in network management stacks including sysrepo, FRRouting, and Red Hat/SUSE platform tooling for NETCONF/RESTCONF processing. The vulnerability is a CWE-416 Use-After-Free in the XML metadata parsing path: lyd_parser_set_data_flags incorrectly updates the linked-list pointers of default metadata entries when a non-head entry is freed, leaving a dangling pointer that is later written to. Because libyang sits at the XML-to-internal-tree boundary, any application that hands attacker-influenced YANG XML to the parser inherits the bug. The affected CPE is cpe:2.3:a:libyang:libyang covering all versions before the fixed release.
Know when Libyang gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
libyang XML parsing library before version 5.2.6 contains a heap use-after-free vulnerability allowing authenticated users to disrupt services or compromise systems through specially crafted YANG documents. Organizations deploying applications reliant on libyang for configuration management or network device integration must immediately prioritize patching to prevent operational outages and unauthorized access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
libyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via the function lysp_stmt_validat
In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. Rated
In function lys_node_free() in libyang <= v1.0.225, it asserts that the value of node->module can't be NULL. Rated high
In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. Rated high
A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem(). Rated high sev
In function read_yin_container() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. R
In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG fi
In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG fi
Freeing the pointer returned by libyang's in-memory input helpers can hand an interior heap address to free() and abort
Wrong-status-code handling in CESNET libyang through 6.4.13 causes ly_in_filepath() in src/in.c to report success when t
A file descriptor leak in libyang through 6.4.13 lets an attacker who can feed files into the library's by-path parsers
In CESNET libyang through 6.4.13, ly_out_reset() in src/out.c rewinds a seekable output target but can skip the accompan
Same weakness CWE-416 – Use After Free
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
EUVD-2026-31832
GHSA-v7jp-vmx6-5429
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB