CVE-2026-46378: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in TomWright dasel
CVE-2026-46378 is a medium severity vulnerability in the TomWright dasel command-line tool and library. Versions from 3.0.0 up to but not including 3.10.1 contain a flaw in the selector lexer where an unterminated regex literal causes an infinite loop during tokenization. This loop results from the peekRuneEqual function returning false at end of input, allowing attacker-controlled selector strings to consume CPU resources indefinitely. The issue is fixed in version 3.10.1.
AI Analysis
Technical Summary
The vulnerability exists in dasel versions >=3.0.0 and <3.10.1 in the selector lexer component, specifically in the matchRegexPattern closure within (*Tokenizer).parseCurRune in selector/lexer/tokenize.go. When processing an unterminated regex literal (e.g., 'r/'), the lexer enters an infinite loop because peekRuneEqual returns false after the input ends, preventing loop exit. This allows crafted selector strings to cause excessive CPU consumption. The flaw is addressed in dasel version 3.10.1.
Potential Impact
An attacker can supply specially crafted selector strings that cause the dasel tool to enter an infinite loop during tokenization, leading to denial of service by consuming CPU resources indefinitely. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade dasel to version 3.10.1 or later, where this infinite loop vulnerability is fixed. No other mitigation or workaround is indicated by the vendor advisory or CVE data.
CVE-2026-46378: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in TomWright dasel
Description
CVE-2026-46378 is a medium severity vulnerability in the TomWright dasel command-line tool and library. Versions from 3.0.0 up to but not including 3.10.1 contain a flaw in the selector lexer where an unterminated regex literal causes an infinite loop during tokenization. This loop results from the peekRuneEqual function returning false at end of input, allowing attacker-controlled selector strings to consume CPU resources indefinitely. The issue is fixed in version 3.10.1.
CVSS v3.1
Score 6.2medium
Affected software
pkg:golang/github.com/tomwright/daselRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in dasel versions >=3.0.0 and <3.10.1 in the selector lexer component, specifically in the matchRegexPattern closure within (*Tokenizer).parseCurRune in selector/lexer/tokenize.go. When processing an unterminated regex literal (e.g., 'r/'), the lexer enters an infinite loop because peekRuneEqual returns false after the input ends, preventing loop exit. This allows crafted selector strings to cause excessive CPU consumption. The flaw is addressed in dasel version 3.10.1.
Potential Impact
An attacker can supply specially crafted selector strings that cause the dasel tool to enter an infinite loop during tokenization, leading to denial of service by consuming CPU resources indefinitely. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade dasel to version 3.10.1 or later, where this infinite loop vulnerability is fixed. No other mitigation or workaround is indicated by the vendor advisory or CVE data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T19:53:47.921Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a59206068715ace437c3ef7
Added to database: 07/16/2026, 18:18:08 UTC
Last enriched: 07/16/2026, 18:33:24 UTC
Last updated: 07/16/2026, 21:16:59 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.