{"id":"CVE-2026-62866","published":"2026-09-21T16:51:18Z","modified":"2026-09-21T18:00:18Z","title":"Dasel: Selector lexer panics on trailing whitespace in `parseCurRune`","vendor":"TomWright","product":"dasel","tier":"tail","description":{"text":"Dasel is a command-line tool and library for querying, modifying, and transforming data structures. From 3.0.0 until 3.11.2, selector/lexer/tokenize.go parseCurRune advances the input index across trailing whitespace and then reads the source at the exhausted index without an end-of-input check. A selector ending in whitespace, including input passed through lexer.NewTokenizer(...).Tokenize() or dasel.Query, can therefore cause an index-out-of-range panic and terminate the process. This issue is fixed in version 3.11.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00192,"percentile":0.09082,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TomWright/dasel/commit/eee03aec28d4a33d6138098d065b7b37b85e3c55","tags":["x_refsource_MISC"]},{"url":"https://github.com/TomWright/dasel/releases/tag/v3.11.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":1.82},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"tomwright","affectedVersions":[{"vendor":"TomWright","product":"dasel","versions":[">= 3.0.0, < 3.11.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-21T17:59:52.863215Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/tomwright/dasel/v3","vulnerableRanges":[">=3.0.0, <3.11.2"],"patched":["3.11.2"],"from":["GHSA-65gg-g7rw-6cpc","GO-2026-6548"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/tomwright/dasel","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-6548"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/tomwright/dasel/v2","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-6548"],"provenance":"source"}],"summary":{"text":"The Dasel command-line tool and library, specifically the selector lexer's parseCurRune function in selector/lexer/tokenize.go, fails to check for end-of-input after skipping trailing whitespace, affecting versions 3.0.0 through 3.11.2. An attacker with local access can trigger an index-out-of-range panic that terminates the process by supplying a selector ending in whitespace, whether through the command line or through the tokenizer and query APIs, without any authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:29Z"},"euvd":{"id":"EUVD-2026-84016","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tomwright-dasel-cve-2026-46378","parents":[{"from":"CVE-2026-46378","to":"CVE-2026-62866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["selector/lexer/tokenize.go"],"commits":["https://github.com/TomWright/dasel/commit/95f8dd3af12958bf6ca2a737b3ec0267280f86ed","https://github.com/TomWright/dasel/commit/eee03aec28d4a33d6138098d065b7b37b85e3c55"],"basis":"shared function","functions":["parseCurRune"]}]}],"packageHistory":[{"cve":"CVE-2026-33320","published":"2026-03-24","fixed":"3.3.2","kev":false},{"cve":"CVE-2026-46378","published":"2026-07-16","fixed":"3.10.1","kev":false},{"cve":"CVE-2026-59168","published":"2026-09-21","fixed":"3.11.1","kev":false,"link":{"from":"CVE-2026-59168","to":"CVE-2026-62866","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/tomwright/dasel/v3","fromFixed":"3.11.1","toFixed":"3.11.2","daysApart":0}]}},{"cve":"CVE-2026-62866","published":"2026-09-21","fixed":"3.11.2","kev":false}],"package":"Go:github.com/tomwright/dasel/v3"}}