CVE-2026-46377 Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/tomwright/dasel/v3 Go | From 3.0.0 | None |
github.com/tomwright/dasel/v3 Go | From 3.0.0 to 3.10.0 | None |
github.com/tomwright/dasel/v3 Go | From 3.0.0 to 3.10.0 | None |
github.com/tomwright/dasel Go | All versions | None |
github.com/tomwright/dasel/v2 Go | All versions | None |
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.