Stack-based Buffer Overflow Affecting libyang package, versions <0:0.16.105-3.el8_1.2


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.39% (73rd 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-RHEL8-LIBYANG-3617506
  • published26 Jul 2021
  • disclosed5 Dec 2019

Introduced: 5 Dec 2019

CVE-2019-19333  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade RHEL:8 libyang to version 0:0.16.105-3.el8_1.2 or higher.
This issue was patched in RHSA-2019:4360.

NVD Description

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

In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "bits". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or possibly gain code execution.

CVSS Scores

version 3.1