CVE-2026-136907: libyang through 6.4.13 Wrong Status Code in ly_in_filepath()
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 conditions are required to trigger the incorrect parsing behavior?
An attacker must be able to make an application reuse an input handler and then switch it to a nonexistent or empty file. Under those conditions, the application may parse data from the previously loaded file instead of the requested input.
Are applications that open a new input handler for each file affected by this issue?
The described condition specifically requires reuse of an input handler. Applications that do not reuse input handlers are not described as affected by this behavior.
How can an application detect that it may have encountered the issue?
A potential indicator is successful processing being reported after a requested file could not be opened or mapped, followed by parsing results consistent with a previously loaded file. The vulnerable function can report success for the failed file operation.