{"id":"CVE-2026-136905","summary":"libyang through 6.4.13 Incomplete Cleanup in ly_out_reset()","details":"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.","modified":"2026-11-25T16:00:09.594746454Z","published":"2026-11-25T14:51:45.073Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136905.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-459"]},"references":[{"type":"PACKAGE","url":"https://github.com/CESNET/libyang"},{"type":"ARTICLE","url":"https://github.com/CESNET/libyang/blob/v6.4.13/src/out.c#L298-L342"},{"type":"FIX","url":"https://github.com/CESNET/libyang/commit/98a4d748f5b744cc9011bb8ade972d69167ed17e"},{"type":"FIX","url":"https://github.com/CESNET/libyang/pull/2644"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136905.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136905"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libyang-through-6.4.13-incomplete-cleanup-in-ly-out-reset"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesnet/libyang","events":[{"introduced":"0"},{"last_affected":"f7e0cc1bc99ec9280af1010a94ba8dd8ef448f6d"},{"fixed":"98a4d748f5b744cc9011bb8ade972d69167ed17e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"6.4.13"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"98a4d748f5b744cc9011bb8ade972d69167ed17e"}]}]}}],"versions":["v6.4.13","v5.8.6","v5.4.9","v4.2.2","v3.13.6","v3.13.5","v3.12.2","v3.7.8","v3.4.2","v3.1.0","v2.2.8","v2.1.148","v2.1.128","v2.1.111","v2.1.80","v2.1.55","v2.1.30","v2.1.4","v2.0.231","v2.0.194","v2.0.112","v2.0.97","v2.0.88","v2.0.7","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-136905.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}