libyang through 6.4.13 Wrong Status Code in ly_in_filepath()
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 25, 2026
Description
CESNET libyang through 6.4.13 contains a return of wrong status code vulnerability in ly_in_filepath() 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.
| Product | Versions |
|---|---|
| libyang CESNET | 6.4.13 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-393 Return of Wrong Status Code
References
- https://github.com/CESNET/libyang/issues/2598Issue Tracker
- https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0Patch
- https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316Technical Details
- VulnCheck Advisory: libyang through 6.4.13 Wrong Status Code in ly_in_filepath()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.