Dasel: Denial of service in dasel selector lexer due to infinite loop on unterminated regex literal
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-835.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| TomWright | dasel | 3.0.0 to before 3.10.1 | 3.10.1 | Patch available | CNA |
| — | github.com/tomwright/dasel/v3 (Go) | 3.0.0 to before 3.10.1 | 3.10.1 | Patch available | GHSA-m6xr-fvfg-5g64 |
- dasel VendorTomWright Affected 3.0.0 to before 3.10.1 Fixed in 3.10.1 Patch available CNA
- github.com/tomwright/dasel/v3 (Go) Vendor— Affected 3.0.0 to before 3.10.1 Fixed in 3.10.1 Patch available GHSA-m6xr-fvfg-5g64
Remediation
- Fix · CNA dasel (TomWright) Fixed in 3.10.1
- Fix · GHSA-m6xr-fvfg-5g64 github.com/tomwright/dasel/v3 (Go) Fixed in 3.10.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-46378
- 2026-10-03 Alias added: GHSA-m6xr-fvfg-5g64
References
More TomWright vulnerabilities
- TI-2026-44930 Dasel: Selector lexer panics on trailing whitespace in `parseCurRune` CVSS 3.1MEDIUM 6.2
- TI-2026-34093 Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string CVSS 3.1MEDIUM 6.2
- TI-2026-25731 Dasel has unbounded YAML alias expansion in dasel leads to CPU/memory denial of service CVSS 3.1MEDIUM 6.2
- TI-2026-42329 Dasel: Unbounded recursion in JSON and XML readers causes unrecoverable stack-overflow DoS CVSS 3.1MEDIUM 6.2
Sources
- CVE-2026-46378 · CVE Program
- CVE-2026-46378 · NVD
- FIRST EPSS
- GHSA-m6xr-fvfg-5g64 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences