libyang stale input parsed after false success in ly_in_filepath()
- Exploited
- Proof of concept public, per CISA
- Fix
- Fix or patch referenced
- Who is exposed
- Not reported
Summary
CESNET libyang reports success in ly_in_filepath() when a new file cannot be opened or mapped, so an application that reuses an input handler parses the previously loaded file's data as the requested input. An attacker can make this happen remotely, without logging in and without any user action, by getting the application to switch the handler to a nonexistent or empty file.
Written by a model
Original 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.
What to do
Apply the patch listed under Evidence.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-136907 (libyang through 6.4.13 Wrong Status Code in ly_in_filepath()), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-136907 (entry last updated 2026-11-25):
Affected:
- CESNET libyang: through 6.4.13
Fixed versions: none listed yet.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-136907 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-136907 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0
- https://github.com/CESNET/libyang/issues/2598
- https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316
- https://www.vulncheck.com/advisories/libyang-through-6.4.13-wrong-status-code-in-ly-in-filepath
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-136907
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-136907"}.Affected versions
- CESNET libyangthrough 6.4.13
cve.now Index
- Exploitation15/40CISA rates a proof of concept as public
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.3/10CVSS 6.3
- No patch0/5No signal
What would change the score
- Would score about 68 if added to CISA KEV
- Would score about 63 if CISA's SSVC rates exploitation active
- Would score about 43 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: partial
- Record last updated
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-136907 |
| Record | NVD · CVE-2026-136907 |
| Other links 4 | |
| Patch | GitHub · CESNET/libyang · Commit ed9b84f3 |
| Report | GitHub · CESNET/libyang · Issue #2598 |
| Repository | GitHub · CESNET/libyang · src/in.c · L281-L316 |
| Link | vulncheck.com · advisories/libyang-through-6.4.13-wrong-status-code-in-ly-in-filepath |
Questions about CVE-2026-136907
Is CVE-2026-136907 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-136907?
libyang: through 6.4.13.
Source: cve.now feed data
Related
- CVE-2026-136908libyang through 6.4.13 Invalid Pointer Release via ly_in_memory()
- CVE-2026-44673libyang: lyb_read_string() integer overflow → heap buffer overflow
- CVE-2026-136905libyang through 6.4.13 Incomplete Cleanup in ly_out_reset()
- CVE-2026-136906libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()
- CVE-2026-115327libyang through 6.4.13 Uninitialized Pointer Free in NETCONF RPC Parser
- CVE-2026-122127CESNET ipfixcol2 2.7.1 before 2.9.0 Heap Buffer Overflow via TCP LZ4 Decoder
No corrections so far. Something wrong on this page? Report an error.