libyang through 6.4.13 contains a file descriptor leak in ly_in_new_filepath() and ly_in_filepath() in src/in.c that
Source GCVE Database
Not known to be exploited · CVSS 6.3 Medium.
Data as of 25 Nov 2026, 16:23 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 3.7 |
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| CESNETlibyang | Affected
| Fixed in– |
GitHublibyangpkg:github/libyangOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, limit or restrict the ability of untrusted users to supply files parsed by lyd_parse_data_path() or lys_parse_path() to reduce the risk of resource exhaustion.
Description
libyang versions through 6.4.13 have a file descriptor leak vulnerability in the functions ly_in_new_filepath() and ly_in_filepath() within src/in.c. The issue occurs because file descriptors are not closed when file mapping fails. An attacker able to supply files parsed through lyd_parse_data_path() or lys_parse_path() can repeatedly submit empty files, leading to exhaustion of file descriptors and causing subsequent file and socket operations to fail.
References
- nvd.nist.gov/vuln/detail/CVE-2026-136906 (opens in a new tab)
- github.com/CESNET/libyang/issues/2598 (opens in a new tab)
- github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0 (opens in a new tab)
- github.com/CESNET/libyang/blob/v6.4.13/src/in.c (opens in a new tab)
- github.com/CESNET/libyang/blob/v6.4.13/src/in.c (opens in a new tab)
- vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath (opens in a new tab)