Unchecked Return Value Affecting libyang package, versions <3.4.2+dfsg-2


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
1.41% (70th 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-DEBIAN14-LIBYANG-11749742
  • published10 Aug 2025
  • disclosed20 May 2021

Introduced: 20 May 2021

CVE-2021-28904  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade Debian:14 libyang to version 3.4.2+dfsg-2 or higher.

NVD Description

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

In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.

CVSS Base Scores

version 3.1