Cesnet Libyang vulnerabilities
23 vulnerabilities
Known vulnerabilities in Cesnet Libyang, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
RoutineCVE-2026-136905cesnet · libyang +2 morelibyang through 6.4.13 Incomplete Cleanup in ly_out_reset()CESNET libyang through 6.4.13 contains an incomplete cleanup vulnerability in ly_out_reset() in src/out.c that tests a stale errno ESPIPE value after a successful seek. Applications reusing one output handler for different clients rewind but do not truncate the file, leaking leftover bytes of a previous client's output.CVSS6.3MediumEPSS0.51%RoutineCVE-2026-136906cesnet · libyang +2 morelibyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()libyang through 6.4.13 contains a file descriptor leak in ly_in_new_filepath() and ly_in_filepath() in src/in.c that fails to close descriptors when file mapping fails. Attackers who can supply files parsed through lyd_parse_data_path() or lys_parse_path() can repeatedly submit empty files to exhaust descriptors, causing later file and socket operations to fail.CVSS6.3MediumEPSS0.87%RoutineCVE-2026-136907cesnet · libyang +2 morelibyang through 6.4.13 Wrong Status Code in ly_in_filepath()CESNET libyang through 6.4.13 contains a return of wrong status code vulnerability in ly_in_filepath() in src/in.c that reports success when a new file cannot be opened or mapped. Attackers who make an application switch a reused input handler to a nonexistent or empty file cause it to parse the previously loaded file's data as the requested input.CVSS6.3MediumEPSS0.64%PrioritiseCVE-2026-136908cesnet · libyang +2 morelibyang through 6.4.13 Invalid Pointer Release via ly_in_memory()libyang through 6.4.13 contains a release of invalid pointer vulnerability in ly_in_memory() and ly_in_memory_chunk() in src/in.c that return the current read position instead of the previous start address. Attackers supplying YANG data parsed from a heap buffer can cause applications freeing the returned pointer to pass an interior address to free(), aborting the process.CVSS8.2HighEPSS0.87%RoutineCVE-2026-115327cesnet · libyang +5 morelibyang through 6.4.13 Uninitialized Pointer Free in NETCONF RPC Parserlibyang through 6.4.13 contains an uninitialized pointer free vulnerability in lydxml_env_netconf_rpc() in src/parser_xml.c when parsing NETCONF rpc action envelopes. Peers with a NETCONF session can send an action element containing non-whitespace text via lyd_parse_op() to crash servers like netopeer2 or corrupt the heap.CVSS6.0MediumEPSS0.41%PrioritiseCVE-2026-44673cesnet · libyang +17 morelibyang: lyb_read_string() integer overflow → heap buffer overflowlibyang is a YANG data modeling language library. Prior to SO 5.2.15, lyb_read_string() in src/parser_lyb.c contains an integer overflow that results in a heap buffer overflow when parsing a maliciously crafted LYB binary blob. An attacker who can supply LYB data to any libyang consumer (NETCONF server, sysrepo, etc.) can trigger a crash or potential heap corruption. This vulnerability is fixed in SO 5.2.15.CVSS7.5HighEPSS0.64%PrioritiseCVE-2023-26917cesnet · libyang +3 morecesnet libyanglibyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via the function lysp_stmt_validate_value at lys_parse_mem.c.CVSS7.5HighEPSS0.89%RoutineCVE-2023-26916cesnet · libyang +4 morecesnet libyanglibyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via the function lys_parse_mem at lys_parse_mem.c.CVSS5.3MediumEPSS0.99%PrioritiseCVE-2021-28906cesnet · libyang +3 morecesnet libyangIn function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash.CVSS7.5HighEPSS1.57%PrioritiseCVE-2021-28905cesnet · libyang +7 morecesnet libyangIn function lys_node_free() in libyang <= v1.0.225, it asserts that the value of node->module can't be NULL. But in some cases, node->module can be null, which triggers a reachable assertion (CWE-617).CVSS7.5HighEPSS1.42%PrioritiseCVE-2021-28904cesnet · libyang +3 morecesnet libyangIn function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.CVSS7.5HighEPSS1.41%PrioritiseCVE-2021-28903cesnet · libyang +3 morecesnet libyangA stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem(). lyxml_parse_elem() function will be called recursively, which will consume stack space and lead to crash.CVSS7.5HighEPSS2.43%PrioritiseCVE-2021-28902cesnet · libyang +3 morecesnet libyangIn function read_yin_container() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash.CVSS7.5HighEPSS1.55%RoutineCVE-2019-20398cesnet · libyang +2 morecesnet libyangA 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.CVSS6.5MediumEPSS1.82%RoutineCVE-2019-20397cesnet · libyang +2 morecesnet libyangA 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.CVSS8.8HighEPSS2.51%RoutineCVE-2019-20396cesnet · libyang +2 morecesnet libyangA segmentation fault is present in yyparse in libyang before v1.0-r1 due to a malformed pattern statement value during lys_parse_path parsing.CVSS6.5MediumEPSS1.93%RoutineCVE-2019-20395cesnet · libyang +2 morecesnet libyangA 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.CVSS6.5MediumEPSS1.85%PrioritiseCVE-2019-20394cesnet · libyang +2 morecesnet libyangA 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.CVSS8.8HighEPSS2.81%PrioritiseCVE-2019-20393cesnet · libyang +2 morecesnet libyangA double-free is present in libyang before v1.0-r1 in the function yyparse() when an empty description is used. 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.CVSS8.8HighEPSS2.84%RoutineCVE-2019-20392cesnet · libyang +2 morecesnet libyangAn invalid memory access flaw is present in libyang before v1.0-r1 in the function resolve_feature_value() when an if-feature statement is used inside a list key node, and the feature used is not defined. Applications that use libyang to parse untrusted input yang files may crash.CVSS6.5MediumEPSS1.88%