CVE-2019-20394 json
A double-free is present in libyang before v1.0-r3 in the function yyparse() when a type statement in used in a notification statement.
published 6y ago modified 4mo ago also EUVD-2019-10944
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
A double-free is present in libyang before v1.0-r3 in the function yyparse() when a type statement in used in a notification statement. Applications that use libyang to parse untrusted input yang files may be vulnerable to this flaw, which would cause a crash or potentially code execution.
Patch / fix
- libyang Debian 14, Debian 13 1.0.176-1
debian advisories DEBIAN-CVE-2019-20394
- libyang RHEL 8 1.0.184-1.el8
red hat advisories RHEA-2021:1906
- libyang AlmaLinux 8 1.0.184-1.el8
almalinux advisories ALEA-2021:1906
Is CVE-2019-20394 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-20394 updated cvss 7.0
libyang: double-free in yyparse() when a type statement is used in a notification statement
-
Red Hat Enterprise Linux AppStream (v. 8) libyang 1.0.184-1.el8fixed: vendor fix RHEA-2021:1906
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.81% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/CESNET/libyang/issues/769 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-415 Double Free
References
-
github.com
/CESNET/libyang/commit/6cc51b1757dfbb7cff92de074ada65e8523289a6
patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1793932
issue-tracking, patch, third-party-advisory
-
github.com
/CESNET/libyang/issues/769
exploit, third-party-advisory
-
github.com
/CESNET/libyang/compare/v1.0-r2...v1.0-r3
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/09/msg00019.html
mailing-list
Sources
- CVE List CVE-2019-20394
- NVD CVE-2019-20394
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.