p PatchFirst

PatchFirst · Latest vulnerabilities

libyang vulnerabilities

Vulnerabilities published for libyang in the last 30 days: 5. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 20

  1. USN-9429-1

    UpdateNot ratedFix available

    libyang vulnerabilities

    It was discovered that libyang did not properly handle certain feature statements in YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20391) It was discovered that libyang did not properly handle undefined features in certain YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20392) It was discovered that libyang incorrectly freed memory when parsing certain YANG files with empty descriptions. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service

    • Update to 0.16.105-3ubuntu0.1~esm1
    Published Updated
  2. CVE-2026-136905

    Medium · CVSS 6.3EPSS 0.51%No fix published

    libyang 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.

    Published Updated
  3. CVE-2026-136906

    Medium · CVSS 6.3EPSS 0.87%No fix published

    libyang 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.

    Published Updated
  4. CVE-2026-136907

    Medium · CVSS 6.3EPSS 0.64%No fix published

    libyang 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.

    Published Updated
  5. CVE-2026-136908

    High · CVSS 8.2EPSS 0.87%No fix published

    libyang 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.

    Published Updated
  6. CVE-2026-115327

    Medium · CVSS 6EPSS 0.41%No fix published

    libyang through 6.4.13 Uninitialized Pointer Free in NETCONF RPC Parser

    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.

    Published Updated
  7. CVE-2026-41401

    Medium · CVSS 6.9EPSS 0.67%No fix published

    libyang - Heap Use-After-Free Write in XML Metadata Parsing

    libyang before 5.4.3 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.

    Published Updated
  8. CVE-2019-20397

    High · CVSS 8.8EPSS 2.51%Fix available

    CVE-2019-20397

    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.

    • Update to 0.16.105-3ubuntu0.1~esm1
    Published Updated
  9. CVE-2019-20394

    High · CVSS 8.8EPSS 2.81%Fix available

    CVE-2019-20394

    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.

    • Update to 0.16.105-3ubuntu0.1~esm1
    Published Updated
  10. CVE-2019-20393

    High · CVSS 8.8EPSS 2.84%Fix available

    CVE-2019-20393

    A 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.

    • Update to 0.16.105-3ubuntu0.1~esm1
    Published Updated
  11. CVE-2019-20392

    Medium · CVSS 6.5EPSS 1.88%Fix available

    CVE-2019-20392

    An 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.

    • Update to 0.16.105-3ubuntu0.1~esm1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →