Read the docs

File descriptor leak in libyang when parsing files

Priority MEDIUM 61CWE-775Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

libyang through 6.4.13 contains a file descriptor leak in ly_in_new_filepath() that fails to close descriptors when file mapping fails. The flaw is classified as CWE-775, missing release of a file descriptor after its effective lifetime. An unauthenticated remote attacker who can supply files parsed by the library can repeatedly submit empty files to exhaust descriptors, causing later file and socket operations to fail.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00617 43rd percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
CESNETlibyangup to 6.4.13—No fix listedCNA
  • libyang VendorCESNET Affected up to 6.4.13 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for libyang.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-136906
  2. 2026-11-25 Alias added: GHSA-p58p-2jm4-88hq
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-32573 libyang: lyb_read_string() integer overflow → heap buffer overflow CVSS 3.1HIGH 7.5
  • TI-2023-11820 libyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via… CVSS 3.1HIGH 7.5
  • TI-2026-98268 Wrong status code in libyang file input reports success on failure CVSS 4.0MEDIUM 6.3
  • TI-2026-79264 Uninitialized pointer free in libyang NETCONF RPC parser CVSS 4.0MEDIUM 6.0
  • TI-2019-13946 Stack-based buffer overflow in Red Hat libyang CVSS 3.1CRITICAL 9.8
  • TI-2019-13945 Stack-based buffer overflow in Red Hat libyang CVSS 3.1CRITICAL 9.8
See all 29 →

Sources