CVE-2019-19334CWE-121

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 "identityref"

High · published December 6, 2019

CVSS v3.0
8.1
EPSS
4%
Percentile
90.1
In the wild
Unconfirmed
What it is

⚡ A stack-based buffer overflow in libyang could turn your YANG files into a trojan horse! This vulnerability affects all versions before 1.0-r5. 😱 Think of libyang as a meticulous librarian sorting through books (YANG files). If someone sneaks in a book with a worm that causes the librarian's system to crash, chaos ensues in the library—much like a denial of service in your application! An attacker can exploit this vulnerability to create a specially crafted YANG file that leads to service interruptions or, in a worst-case scenario, even remote code execution. This means they could gain control of your system—absolutely devastating!

Put simply

Think of libyang as a meticulous librarian sorting through books (YANG files). If someone sneaks in a book with a worm that causes the librarian's system to crash, chaos ensues in the library—much like a denial of service in your application! CVE-2019-19334 is a stack-based buffer overflow triggered when libyang processes YANG files with a leaf type of "identityref," allowing untrusted inputs to manipulate memory in harmful ways.

What to do

An attacker can exploit this vulnerability to create a specially crafted YANG file that leads to service interruptions or, in a worst-case scenario, even remote code execution. This means they could gain control of your system—absolutely devastating! To protect yourself, upgrade to libyang version 1.0-r5 or later immediately. Additionally, avoid parsing untrusted YANG files to limit exposure. Conduct regular audits of your applications using this library! You've got this! By taking these steps, you can fortify your defenses and keep your systems safe! 🛡️

The record
Technical detail
CVSS v3.0
8.1 · HIGH
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03870 · 90.1th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2019-12-06T15:22Z
EPSS history
Timeline
  • 06 DEC 15:22Z
    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 "identityref"
    cvelistv5