Use After Free Affecting libyang2 package, versions *


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.67% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-LIBYANG2-21692039
  • published24 Oct 2026
  • disclosed26 May 2026

Introduced: 26 May 2026

CVE-2026-41401  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest libyang2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libyang2 package and not the libyang2 package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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 Base Scores

version 3.1