# CVE-2026-136906: libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-25T14:51:43.969Z
- Modified: 2026-11-30T19:17:54.687Z
- Weaknesses: CWE-775
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- CESNET libyang: up to 6.4.13

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `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`
- VulnCheck: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/CESNET/libyang/issues/2598> (exploit, issue-tracking)
- <https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0> (patch)
- <https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L252-L279> (technical-description)
- <https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316> (technical-description)
- <https://www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-136906](https://www.cve.org/CVERecord?id=CVE-2026-136906), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-136906](https://nvd.nist.gov/vuln/detail/CVE-2026-136906), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-136906 · Whole record: https://cve.day/CVE-2026-136906.json · Rebuilt by cve.day 2026-11-30T19:32:17.760Z
