# CVE-2026-136905: libyang through 6.4.13 Incomplete Cleanup in ly_out_reset()

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/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.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-11-25T14:51:45.073Z
- Modified: 2026-11-30T21:17:23.650Z
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(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:L/VI:N/VA:N/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:L/I:N/A:N`

## References

- <https://github.com/CESNET/libyang/pull/2644> (issue-tracking, patch)
- <https://github.com/CESNET/libyang/commit/98a4d748f5b744cc9011bb8ade972d69167ed17e> (patch)
- <https://github.com/CESNET/libyang/blob/v6.4.13/src/out.c#L298-L342> (technical-description)
- <https://www.vulncheck.com/advisories/libyang-through-6.4.13-incomplete-cleanup-in-ly-out-reset> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-136905 · Whole record: https://cve.day/CVE-2026-136905.json · Rebuilt by cve.day 2026-11-30T21:32:17.756Z
