CVE-2026-46377 Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string

Medium 6.2 Published Updated

Attacker-controlled selector strings can trigger a panic in the Dasel library, causing a denial of service for applications using it.

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-46377?

CVE-2026-46377 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 escape sequence handler in (*Tokenizer).parseCurRune in selector/lexer/tokenize.go increments past a trailing backslash in a quoted string such as "\ or '\ and then reads p.src[pos] without a bounds check, allowing attacker-controlled selector strings to trigger a Go index-out-of-range panic. This issue is fixed in version 3.10.1.

Weakness: CWE-129

Which versions are affected by CVE-2026-46377?

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.0None
github.com/tomwright/dasel/v3 GoFrom 3.0.0 to 3.10.0None
github.com/tomwright/dasel/v3 GoFrom 3.0.0 to 3.10.0None
github.com/tomwright/dasel GoAll versionsNone
github.com/tomwright/dasel/v2 GoAll versionsNone

How do I fix CVE-2026-46377?

Upgrade to a fixed version.

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-46377 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-46377, GHSA-m5j3-4634-c2vq, GO-2026-5491, UBUNTU-CVE-2026-46377.

Is CVE-2026-46377 in your software?

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

Check your SBOMs for free