{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "6.4.13"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "ed9b84f325fb88e1aa467417222c5f0d0ab51fb0"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "f7e0cc1bc99ec9280af1010a94ba8dd8ef448f6d"
            },
            {
              "fixed": "ed9b84f325fb88e1aa467417222c5f0d0ab51fb0"
            }
          ],
          "repo": "https://github.com/cesnet/libyang",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-775"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136906.json"
  },
  "details": "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.",
  "id": "CVE-2026-136906",
  "modified": "2026-11-25T15:46:01.795165738Z",
  "published": "2026-11-25T14:51:43.969Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://github.com/CESNET/libyang"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L252-L279"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316"
    },
    {
      "type": "FIX",
      "url": "https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/CESNET/libyang/issues/2598"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136906.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-136906"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()"
}