{"schemaVersion":4,"id":"CVE-2026-136907","aliases":["UBUNTU-CVE-2026-136907"],"status":"published","duplicateOf":null,"title":"libyang through 6.4.13 Wrong Status Code in ly_in_filepath()","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.","dates":{"published":"2026-11-25T14:51:42.789Z","modified":"2026-11-25T15:42:48.832Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":5.6,"impact":4.2,"computed":true}]},"epss":{"probability":0.0064,"percentile":0.52079,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-26T00:00:00.000Z","score":0.00639,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00639,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0064,"percentile":0.52079}],"last30":[{"date":"2026-11-26T00:00:00.000Z","score":0.00639,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00639,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0064,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0064,"percentile":0.52079}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-393","name":"Return of Wrong Status Code","description":"A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/393.html"}],"affected":[{"vendor":"cesnet","product":"libyang","name":"libyang","label":"libyang","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.4.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.4.13","endInclusive":true}}],"versionsText":"≤ 6.4.13","eol":null,"hubHref":"/vendor/cesnet/libyang"},{"vendor":"ubuntu","product":"libyang","name":"libyang","label":"libyang","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libyang","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libyang2","name":"libyang2","label":"libyang2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libyang2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/CESNET/libyang/issues/2598","label":"github.com/CESNET/libyang/issues/2598","hostname":"github.com","tags":["Issue Tracking"]},{"url":"https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0","label":"github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316","label":"github.com/CESNET/libyang/blob/v6.4.13/src/in.c","hostname":"github.com","tags":["Technical Description"]},{"url":"https://www.vulncheck.com/advisories/libyang-through-6.4.13-wrong-status-code-in-ly-in-filepath","label":"www.vulncheck.com/advisories/libyang-through-6.4.13-wrong-status-code-in-ly-in-filepath","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-136907","label":"ubuntu.com/security/CVE-2026-136907","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136907","label":"www.cve.org/CVERecord?id=CVE-2026-136907","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-25T14:51:42.789Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-25T15:42:48.832Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,63],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0064,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-25T15:42:48.832Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-25T15:42:40.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.0064,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:47:01.993Z","stale":false,"partial":false}}