AZL-116173: CVE-2026-136907 affecting package libyang 2.1.148-3
CESNET libyang through 6.4.13 contains a return of wrong status code vulnerability in lyinfilepath() in src/in.c that reports success when a new file cannot be opened or mapped. Attackers who make an application switch a reused input handler to a nonexistent or empty file cause it to parse the previously loaded file's data as the requested input.
Affected Software
Event History
Frequently Asked Questions
What applications are realistically exposed to this issue?
Applications using libyang's ly_in_filepath() with a reused input handler are exposed if they can be made to switch that handler to a nonexistent or empty file. The impact is that previously loaded file data may be parsed as though it were the newly requested input.
What does an attacker need to trigger the incorrect parsing behavior?
The attacker needs to cause the application to request a nonexistent or empty file after the input handler has already loaded another file. The vulnerable function reports success instead of reporting that the new file could not be opened or mapped.
How can an application identify that it may have been affected?
Look for cases where ly_in_filepath() reports success when opening or mapping the requested file should have failed. Affected behavior results in parsing data from the previously loaded file rather than data from the requested file.