{"schemaVersion":3,"id":"CVE-2019-20397","aliases":["UBUNTU-CVE-2019-20397","DEBIAN-CVE-2019-20397"],"status":"published","duplicateOf":null,"title":null,"description":"A double-free is present in libyang before v1.0-r1 in the function yyparse() when an organization field is not terminated. 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.","dates":{"published":"2020-01-22T00:00:00.000Z","modified":"2024-08-05T02:39:09.895Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0251,"percentile":0.84548,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.022000000000000144,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02488},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0251,"percentile":0.84548}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02488,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0251,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0251,"percentile":0.84548}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"}],"affected":[{"vendor":"cesnet","product":"libyang","name":"libyang","label":"libyang","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.11:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.11:r2","noFixRecorded":false,"fixedIn":null},{"text":"0.12:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.12:r2","noFixRecorded":false,"fixedIn":null},{"text":"0.13:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.13:r2","noFixRecorded":false,"fixedIn":null},{"text":"0.14:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.15:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.16:r1","noFixRecorded":false,"fixedIn":null},{"text":"0.16:r2","noFixRecorded":false,"fixedIn":null},{"text":"0.16:r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.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","eol":null,"hubHref":"/vendor/cesnet/libyang"},{"vendor":"debian","product":"libyang","name":"libyang","label":"libyang","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libyang","purlType":"deb","versions":[{"text":"< 1.0.176-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.176-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libyang","name":"libyang","label":"libyang","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libyang","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1","label":"github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1","hostname":"github.com","tags":["REPORT","Third Party Advisory"]},{"url":"https://github.com/CESNET/libyang/issues/739","label":"github.com/CESNET/libyang/issues/739","hostname":"github.com","tags":["REPORT","Third Party Advisory"]},{"url":"https://github.com/CESNET/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4","label":"github.com/CESNET/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1793928","label":"bugzilla.redhat.com/show_bug.cgi?id=1793928","hostname":"bugzilla.redhat.com","tags":["REPORT","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00019.html","label":"lists.debian.org/debian-lts-announce/2023/09/msg00019.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://ubuntu.com/security/CVE-2019-20397","label":"ubuntu.com/security/CVE-2019-20397","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-20397","label":"www.cve.org/CVERecord?id=CVE-2019-20397","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-20397","label":"security-tracker.debian.org/tracker/CVE-2019-20397","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3572-1","RHEA-2021:1906"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-01-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T02:39:09.895Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:21:24.235Z","stale":false,"partial":false}}