# CVE-2019-20395: A stack consumption issue is present in libyang before v1.0-r1 due to the self-referential union type containing leafrefs.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-01-22T00:00:00.000Z
- Modified: 2026-06-17T02:30:21.480Z
- Weaknesses: CWE-674
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cesnet libyang: 0.11; 0.12; 0.13; 0.14; 0.15; 0.16

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/CESNET/libyang/issues/724> (exploit, third-party-advisory)
- <https://github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1> (third-party-advisory)
- <https://github.com/CESNET/libyang/commit/4e610ccd87a2ba9413819777d508f71163fcc237> (third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1793924> (issue-tracking, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00019.html> (mailing-list)

## Sources

- CVE List: [CVE-2019-20395](https://www.cve.org/CVERecord?id=CVE-2019-20395), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-20395](https://nvd.nist.gov/vuln/detail/CVE-2019-20395), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-20395 · Whole record: https://cve.day/CVE-2019-20395.json · Rebuilt by cve.day 2026-11-25T22:57:49.299Z
