Read the docs
TI-2026-30002 Aliases CVE-2026-41401GHSA-v7jp-vmx6-5429

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

Priority MEDIUM 64CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.

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 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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00673 52nd percentileScored 2026-11-07
Fix Partial libyang (libyang): 5.4.3Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
libyanglibyangbefore 5.4.35.4.3Patch availableCNA
  • libyang Vendorlibyang Affected before 5.4.3 Fixed in 5.4.3 Patch available CNA

Remediation

  • Fix · CNA libyang (libyang) Fixed in 5.4.3

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-41401
  2. 2026-10-03 Alias added: GHSA-v7jp-vmx6-5429
  3. 2026-10-21 EPSS moved to the 50th–90th percentile

References

Sources