Skip to main content
CVE-2026-41401VulnerabilityPublished Updated

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

Affects libyangSource GCVE Database

0
Compare
Authoritative record:CVE-2026-41401· Medium 6.9

Not known to be exploited · CVSS 6.9 Medium · fixed in 3.13.5-2ubuntu0.1 : update libyang when convenient.

Data as of 5 Nov 2026, 12:34 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.06.9
CNA (VulnCheck)CVSS 3.16.5
Patch
Available – fixed in 3.13.5-2ubuntu0.1, 3.13.6-1ubuntu0.1
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

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 26 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CISA SSVC: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by VulnCheck

    , 36 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. CISA SSVC assessment

    proof of concept public

    , 4 hours after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.

What to do

Upgrade the Ubuntu libyang to 3.13.5-2ubuntu0.1 (package) or 3.13.6-1ubuntu0.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSlibyangpkg:deb/ubuntu/libyang?arch=source&distro=resoluteOther threatsAffected
  • <3.13.6-1ubuntu0.1
Fixed in
  • 3.13.6-1ubuntu0.1
Ubuntu 25.10libyangpkg:deb/ubuntu/libyang?arch=source&distro=questingOther threatsAffected
  • <3.13.5-2ubuntu0.1
Fixed in
  • 3.13.5-2ubuntu0.1
Ubuntu 22.04 LTSlibyangpkg:deb/ubuntu/libyang?arch=source&distro=jammyOther threatsAffected
  • =1.0.225-1.1
Fixed in–
Ubuntu 20.04 LTSlibyangpkg:deb/ubuntu/libyang?arch=source&distro=focalOther threatsAffected
  • 0.16.105-1 – 0.16.105-3build1
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…