CVE-2026-46378 Dasel: Denial of service in dasel selector lexer due to infinite loop on unterminated regex literal

Medium 6.2 Published Updated

An attacker can cause a denial of service via infinite loop in the selector lexer when processing unterminated regex literals in Dasel.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-46378?

CVE-2026-46378 is a medium-severity denial of service vulnerability in TomWright dasel, published on 16 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-835

Which versions are affected by CVE-2026-46378?

5 open source packages ship an affected version, including github.com/tomwright/dasel/v3, github.com/tomwright/dasel and github.com/tomwright/dasel/v2.

PackageAffectedFixed in
github.com/tomwright/dasel/v3 GoFrom 3.0.03.10.1
github.com/tomwright/dasel/v3 GoFrom 3.0.03.10.1
github.com/tomwright/dasel/v3 GoFrom 3.0.03.10.1
github.com/tomwright/dasel GoAll versionsNone
github.com/tomwright/dasel/v2 GoAll versionsNone

How do I fix CVE-2026-46378?

Upgrade github.com/tomwright/dasel/v3 to 3.10.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-46378 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46378 exists.

Sources

Also known as DEBIAN-CVE-2026-46378, GHSA-m6xr-fvfg-5g64, GO-2026-5493, UBUNTU-CVE-2026-46378.

Is CVE-2026-46378 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free