{"id":"CVE-2026-46378","published":"2026-07-16T17:54:51Z","modified":"2026-07-17T15:06:49Z","title":"Dasel: Denial of service in dasel selector lexer due to infinite loop on unterminated regex literal","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.10.1, the selector lexer matchRegexPattern closure in (*Tokenizer).parseCurRune in selector/lexer/tokenize.go loops while tokenizing an unterminated regex literal such as r/ because peekRuneEqual returns false after the end of input, allowing attacker-controlled selector strings to consume CPU indefinitely. This issue is fixed in version 3.10.1.","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.00162,"percentile":0.05483,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/TomWright/dasel/security/advisories/GHSA-m6xr-fvfg-5g64","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TomWright/dasel/commit/95f8dd3af12958bf6ca2a737b3ec0267280f86ed","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":1.1},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"tomwright","affectedVersions":[{"vendor":"TomWright","product":"dasel","versions":[">= 3.0.0, < 3.10.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-17T15:06:25.761486Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/tomwright/dasel/v3","vulnerableRanges":[">=3.0.0, <3.10.1"],"patched":["3.10.1"],"from":["GHSA-m6xr-fvfg-5g64","GO-2026-5493"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/tomwright/dasel","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5493"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/tomwright/dasel/v2","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5493"],"provenance":"source"}],"summary":{"text":"Dasel, a command-line tool and library for querying and transforming data structures, contains an infinite-loop flaw in the selector lexer's regex-literal tokenizer (the matchRegexPattern closure in selector/lexer/tokenize.go) affecting versions 3.0.0 through 3.10.1. An attacker who can supply a malicious selector string can trigger the loop by using an unterminated regex literal such as r/, causing the process to consume CPU indefinitely; the attack requires only local access and no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:00Z"},"euvd":{"id":"EUVD-2026-44994","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tomwright-dasel-cve-2026-46378","children":[{"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,"link":{"from":"CVE-2026-33320","to":"CVE-2026-46378","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/tomwright/dasel/v3","fromFixed":"3.3.2","toFixed":"3.10.1","daysApart":114}]}},{"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-46378","to":"CVE-2026-59168","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/tomwright/dasel/v3","fromFixed":"3.10.1","toFixed":"3.11.1","daysApart":67}]}},{"cve":"CVE-2026-62866","published":"2026-09-21","fixed":"3.11.2","kev":false}],"package":"Go:github.com/tomwright/dasel/v3"}}