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

Published Nov 25, 2026
·
Updated

CESNET libyang through 6.4.13 contains an incomplete cleanup vulnerability in lyoutreset() 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.

Affected Software

1 affected component
CESNET libyang<=6.4.13

Event History

Nov 25, 2026
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Event
via NVD·03:17 PM

Frequently Asked Questions

1

Which deployments are exposed to data leakage?

Applications using libyang through 6.4.13 are exposed when they reuse a single output handler for different clients and rewind its file-backed output between responses. Leftover bytes from a prior client's output can then remain in the file and be returned to another client.

2

What must occur for an attacker to obtain prior output?

The affected application must produce output for multiple clients through the same reused output handler, rewind the output, and fail to truncate it. The prior output must be longer than the subsequent output for leftover bytes to be disclosed.

3

How can operators check whether they may be affected?

Review application use of libyang output handlers for reuse across client requests or sessions. In particular, check whether rewinding output files is followed by truncation before generating a new, potentially shorter response.

4

What can be done if updating libyang is not immediately possible?

Avoid reusing an output handler or its backing file across different clients. If reuse is necessary, ensure the output is truncated after rewind and before writing the next client's output.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203