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.
Published: 2026-07-16
Score: 6.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 16 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Tomwright
Tomwright dasel
Vendors & Products Tomwright
Tomwright dasel

Thu, 16 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 16 Jul 2026 18:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-16T18:21:45.505Z

Reserved: 2026-05-13T19:53:47.921Z

Link: CVE-2026-46377

cve-icon Vulnrichment

Updated: 2026-07-16T18:21:41.589Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:45:06Z

Weaknesses
  • CWE-129

    Improper Validation of Array Index