Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-46378: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in TomWright dasel

0
Medium
VulnerabilityCVE-2026-46378cvecve-2026-46378cwe-835
Published: 07/16/2026 (07/16/2026, 17:54:51 UTC)
Source: CVE Database V5
Vendor/Project: TomWright
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

github.com/tomwright/dasel
pkg:golang/github.com/tomwright/dasel
Affected versions
<3.10.1 >=3.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 18:33:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses