libyang 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. This vulnerability affects libyang installations, particularly those with exposed NETCONF sessions, potentially leading to system crashes or heap corruption. Defenders should assess their exposure, prioritize patching, and implement compensating controls to restrict NETCONF access.
libyang is vulnerable to a heap buffer overflow when parsing maliciously crafted LYB binary blobs. This issue, fixed in version SO 5.2.15, can lead to a crash or potential heap corruption if an attacker supplies LYB data to any libyang consumer. The vulnerability is caused by an integer overflow in the lyb_read_string() function in src/parser_lyb.c. Defenders managing systems that use libyang, especially those processing untrusted LYB data, should assess exposure and prioritize patching to prevent potential crashes or heap corruption.