CVE-2019-20395
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union...
CVE-2019-20395 is a medium vulnerability (CVSS 6.5) in Cesnet Libyang, published January 22, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.85%, the 79th percentile. Fixed in libyang 1.0.184-1.el8.
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
CVE-2019-20395- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-674
- Updated
- 2026-11-02
CVE List No score
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
CVE-2019-20395- Updated
- 2026-11-02
EUVDEUVD-2019-10945 No score
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
EUVD-2019-10945- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3ffh-3h59-484g
6.5
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union...
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
GHSA-3ffh-3h59-484g- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-674
- Updated
- 2026-11-02
OSV
6.5
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
CVE-2019-20395- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-20395
6.5
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
DEBIAN-CVE-2019-20395- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHEA-2021:1906
7.0
Red Hat Enhancement Advisory: libyang bug fix and enhancement update
- Record
RHEA-2021:1906- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-20395
6.5
A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.
- Record
UBUNTU-CVE-2019-20395- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALEA-2021:1906 No score
libyang bug fix and enhancement update
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALEA-2021:1906- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libyangAlmaLinux:8 |
before 1.0.184-1.el8 | 1.0.184-1.el8 |
libyangDebian:13 |
before 1.0.176-1 | 1.0.176-1 |
libyangDebian:14 |
before 1.0.176-1 | 1.0.176-1 |
libyangDebian:10 |
before 0.16.105+really1.0-0+deb10u1, plus listed versions 0.16.105-10.16.105-1+deb10u10.16.105-20.16.105-3 |
0.16.105+really1.0-0+deb10u1 |
libyangRed Hat:enterprise_linux:8::appstream |
before 0:1.0.184-1.el8 | 0:1.0.184-1.el8 |
libyang-cpp-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:1.0.184-1.el8 | 0:1.0.184-1.el8 |
libyang-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:1.0.184-1.el8 | 0:1.0.184-1.el8 |
libyang-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:1.0.184-1.el8 | 0:1.0.184-1.el8 |
python3-libyang-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:1.0.184-1.el8 | 0:1.0.184-1.el8 |
libyangUbuntu:20.04:LTS |
All versions, plus listed versions 0.16.105-10.16.105-20.16.105-30.16.105-3build1 |
None known |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1
github.com/CESNET/libyang/issues/724
github.com/CESNET/libyang/commit/4e610ccd87a2ba9413819777d508f71163fcc237
bugzilla.redhat.com/show_bug.cgi?id=1793924
lists.debian.org/debian-lts-announce/2023/09/msg00019.html
nvd.nist.gov/vuln/detail/CVE-2019-20395
Show 46 moreShow less
github.com/advisories/GHSA-3ffh-3h59-484g
errata.almalinux.org/8/ALEA-2021-1906.html
vulners.com/cve/CVE-2019-20391
vulners.com/cve/CVE-2019-20392
vulners.com/cve/CVE-2019-20393
vulners.com/cve/CVE-2019-20394
vulners.com/cve/CVE-2019-20395
vulners.com/cve/CVE-2019-20396
vulners.com/cve/CVE-2019-20397
vulners.com/cve/CVE-2019-20398
security-tracker.debian.org/tracker/CVE-2019-20395
access.redhat.com/errata/RHEA-2021:1906
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.4_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1910046
security.access.redhat.com/data/csaf/v2/advisories/2021/rhea-2021_1906.json
access.redhat.com/security/cve/CVE-2019-20391
bugzilla.redhat.com/show_bug.cgi?id=1793934
cve.org/CVERecord?id=CVE-2019-20391
nvd.nist.gov/vuln/detail/CVE-2019-20391
access.redhat.com/security/cve/CVE-2019-20392
bugzilla.redhat.com/show_bug.cgi?id=1793922
cve.org/CVERecord?id=CVE-2019-20392
nvd.nist.gov/vuln/detail/CVE-2019-20392
access.redhat.com/security/cve/CVE-2019-20393
bugzilla.redhat.com/show_bug.cgi?id=1793930
cve.org/CVERecord?id=CVE-2019-20393
nvd.nist.gov/vuln/detail/CVE-2019-20393
access.redhat.com/security/cve/CVE-2019-20394
bugzilla.redhat.com/show_bug.cgi?id=1793932
cve.org/CVERecord?id=CVE-2019-20394
nvd.nist.gov/vuln/detail/CVE-2019-20394
access.redhat.com/security/cve/CVE-2019-20395
cve.org/CVERecord?id=CVE-2019-20395
access.redhat.com/security/cve/CVE-2019-20396
bugzilla.redhat.com/show_bug.cgi?id=1793929
cve.org/CVERecord?id=CVE-2019-20396
nvd.nist.gov/vuln/detail/CVE-2019-20396
access.redhat.com/security/cve/CVE-2019-20397
bugzilla.redhat.com/show_bug.cgi?id=1793928
cve.org/CVERecord?id=CVE-2019-20397
nvd.nist.gov/vuln/detail/CVE-2019-20397
access.redhat.com/security/cve/CVE-2019-20398
bugzilla.redhat.com/show_bug.cgi?id=1793935
cve.org/CVERecord?id=CVE-2019-20398
nvd.nist.gov/vuln/detail/CVE-2019-20398
ubuntu.com/security/CVE-2019-20395