Use After Free Affecting CESNET/libyang package, versions [,5.4.9)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (10th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CESNETLIBYANG-16965084
  • published28 May 2026
  • disclosed26 May 2026
  • creditkevin-valerio

Introduced: 26 May 2026

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

How to fix?

Upgrade CESNET/libyang to version 5.4.9 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via the lyd_parser_set_data_flags function. An attacker can cause process crashes or potentially execute arbitrary code by submitting crafted YANG XML documents with specific metadata attributes to applications that parse untrusted XML data.

CVSS Base Scores

version 4.0
version 3.1