{"id":"CVE-2019-20397","details":"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.","modified":"2026-08-07T14:53:10.853205Z","published":"2020-01-22T22:15:10.550Z","references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00019.html"},{"type":"ADVISORY","url":"https://github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1"},{"type":"ADVISORY","url":"https://github.com/CESNET/libyang/issues/739"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1793928"},{"type":"FIX","url":"https://github.com/CESNET/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesnet/libyang","events":[{"introduced":"14a95280b2bd77b5fd1d9b5f8af71b15679f1a8f"},{"last_affected":"9e316f344e73316bf058ef88bd5ba852ad65ba25"},{"fixed":"88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4"}],"database_specific":{"cpe":["cpe:2.3:a:cesnet:libyang:0.11:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.11:r2:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.12:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.12:r2:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.13:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.13:r2:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.14:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.15:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.16:r1:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.16:r2:*:*:*:*:*:*","cpe:2.3:a:cesnet:libyang:0.16:r3:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0.11-r1"},{"last_affected":"0.11-r1"},{"introduced":"0.11-r2"},{"last_affected":"0.11-r2"},{"introduced":"0.12-r1"},{"last_affected":"0.12-r1"},{"introduced":"0.12-r2"},{"last_affected":"0.12-r2"},{"introduced":"0.13-r1"},{"last_affected":"0.13-r1"},{"introduced":"0.13-r2"},{"last_affected":"0.13-r2"},{"introduced":"0.14-r1"},{"last_affected":"0.14-r1"},{"introduced":"0.15-r1"},{"last_affected":"0.15-r1"},{"introduced":"0.16-r1"},{"last_affected":"0.16-r1"},{"introduced":"0.16-r2"},{"last_affected":"0.16-r2"},{"introduced":"0.16-r3"},{"last_affected":"0.16-r3"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["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","v0.16-r3","v0.16-r2","v0.16-r1","v0.15-r1","v0.14-r1","v0.13-r2","v0.12-r2","v0.12-r1","v0.11-r2","v0.11-r1"],"database_specific":{"vanir_signatures_modified":"2026-08-07T14:53:10Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["19930810062833946386526714722842093264","71728508169115866837575559710155390212","211047695715142250079411845799262406046","324012456461005424292435550707084261776"],"threshold":0.9},"id":"CVE-2019-20397-9548a224","signature_type":"Line","signature_version":"v1","source":"https://github.com/cesnet/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4","target":{"file":"src/parser_yang_bis.c"}},{"deprecated":false,"digest":{"function_hash":"255861764402369204287198891288229464985","length":446},"id":"CVE-2019-20397-b1c9eb7b","signature_type":"Function","signature_version":"v1","source":"https://github.com/cesnet/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4","target":{"file":"src/parser_yang_bis.c","function":"yyerror"}}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-20397.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}