CVE-2019-20398: libyang - Null Pointer Dereference
- Cve: CVE-2019-20398
- Name: libyang - Null Pointer Dereference
- Description: A NULL pointer dereference is present in libyang before v1.0-r3 in the function lys_extension_instances_free() due to a copy of unresolved extensions in lys_restr_dup(). Applications that use libyang to parse untrusted input yang files may crash.
- Impact: Applications may crash or become unresponsive, leading to denial of service.
- Remediation: Update to version v1.0-r3 or later.
- Vulnerability type: null_pointer_dereference
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.01818
- Epss percentile: 0.79286
- Assignee: [email protected]
- Published at: 2020-01-22T22:15:10Z
- Age in days: 2498
- Modified at: 2026-06-17T02:30:21Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-20398
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-476 | NULL Pointer Dereference |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/CESNET/libyang/issues/773 | nvd | 2020-01-22 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/CESNET/libyang/commit/7852b272ef77f8098c35deea6c6f09cb78176f08 | Patch |
| https://bugzilla.redhat.com/show_bug.cgi?id=1793935 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/CESNET/libyang/issues/773 | Exploit, Third Party Advisory |
| https://github.com/CESNET/libyang/compare/v1.0-r2...v1.0-r3 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/09/msg00019.html |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cesnet:libyang | = 0.16 r3, = 0.11 r2, = 0.12 r2, = 0.13 r2, = 0.16 r2, = 1.0 r2, = 1.0 r1, = 0.11 r1, = 0.12 r1, = 0.13 r1, = 0.14 r1, = 0.15 r1, = 0.16 r1 | no | nvd | /v1/products/cesnet/libyang |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| CESNET/libyang | commit, compare, fix, issues | yes | /v1/repositories/CESNET/libyang |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-01-22
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts