CVE-2019-19334: cesnet libyang Stack-based Buffer Overflow
Vulnerability summary
CVE-2019-19334 is a critical (CVSS 9.8) Stack-based Buffer Overflow vulnerability in cesnet libyang. EPSS estimates a 3.87% chance of exploitation in the next 30 days, higher than 90% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 06-12-2019PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
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". 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 metrics
7 scores · 4 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
3.87%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
0.00 pp
From 3.87% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Cesnet1 product
- libyang0.11:r1 | 0.11:r2 | 0.12:r1 | 0.12:r2 | 0.13:r1 | 0.13:r2 | 0.14:r1 | 0.15:r1 | 0.16:r1 | 0.16:r2 | 0.16:r3 | 1.0:r1 | 1.0:r2 | 1.0:r3 | 1.0:r4
Debian1 product
- libyang< 0.16.105-2
Fedoraproject1 product
- fedoraEOL31
Red hat1 product
- libyanglibyang all versions before 1.0-r5
Redhat1 product
Ubuntu1 product
- libyang< 0.16.105-2
6 vendors · 6 products
References
8 links- bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-19334X Refsource CONFIRMIssue TrackingPatchThird Party Advisory
- github.com/CESNET/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6X Refsource CONFIRMREPORTPatchThird Party Advisory