CVE-2026-46377

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

Published Jul 16, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Dasel is a command‑line tool and library for querying, modifying, and transforming data structures. From version 3.0.0 through 3.10.1, the escape sequence handler in (*Tokenizer).parseCurRune in selector/lexer/tokenize.go increments past a trailing backslash in a quoted string, then attempts to read p.src[pos] without a bounds check. This bug allows attacker‑controlled selector strings to trigger a Go index‑out‑of‑range panic, causing Dasel to terminate unexpectedly. The resulting panic effectively denies service to any user or component that relies on the tool.

Affected Systems

The vulnerability affects the TomWright dasel command‑line utility and library for all releases from 3.0.0 up to but not including the fixed 3.10.1 release. The patch was applied in version 3.10.1, which removes the vulnerable lexer logic.

Risk and Exploitability

The CVSS score of 6.2 indicates moderate exploitation impact. The EPSS score of < 1% reflects a very low probability that this vulnerability will be actively exploited in the wild. Dasel is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is a local user or untrusted input supplied to Dasel that contains a selector string with an escaped backslash in a quoted string, causing the parse routine to panic. If exploited, the result is a denial‑of‑service condition rather than code execution or data exfiltration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch by upgrading to Dasel version 3.10.1 or newer
  • If an upgrade is not immediately possible, validate or sanitize selector strings before passing them to Dasel, ensuring that no trailing backslashes appear inside quoted strings
  • After remediation, monitor runtime logs for any panic exceptions to confirm that the issue has been fully resolved

Generated by OpenCVE AI on July 31, 2026 at 01:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m5j3-4634-c2vq Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string
History
Type Values Removed Values Added
First Time appeared Tomwright
Tomwright dasel
Vendors & Products Tomwright
Tomwright dasel
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string
Weaknesses CWE-129
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-129

    Improper Validation of Array Index

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 16, 2026, 6:21 PM
Reserved
May 13, 2026, 7:53 PM
Status
Deferred
Published
Jul 16, 2026, 7:16 PM
Modified
Oct 24, 2026, 8:10 PM