Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-46377
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:54 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 16 Jul 2026, 17:57 UTC

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.

osv:CVE-2026-46377
Complete source record
{
  "id": "e92742fd04df6e4768fbfea1162902ed3ca6116638fe7347d3b6255f11e243e4",
  "url": "https://osv.dev/vulnerability/CVE-2026-46377",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string",
    "summary": "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.",
    "evidence": "osv:CVE-2026-46377",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-46377",
      "aliases": [
        "CVE-2026-46377",
        "GHSA-m5j3-4634-c2vq",
        "GO-2026-5491"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tomwright/dasel",
              "type": "GIT",
              "events": [
                {
                  "introduced": "648f83baf070d9e00db8ff312febef857ec090a3"
                },
                {
                  "fixed": "e3c6663d78c62f69579d8f9afd00453dc3d01c29"
                },
                {
                  "fixed": "5fc1172287df89860caf139b146007d7ed12178c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.10.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5fc1172287df89860caf139b146007d7ed12178c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e3c6663d78c62f69579d8f9afd00453dc3d01c29"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v3.10.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.10.0",
            "v3.9.0",
            "v3.8.1",
            "v3.8.0",
            "v3.7.0",
            "v3.6.0",
            "v3.5.0",
            "v3.4.1",
            "v3.4.0",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.3",
            "v3.2.2",
            "v3.2.1",
            "v3.2.0",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46377.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.915610972Z",
      "provider": "osv",
      "references": [
        "https://github.com/TomWright/dasel/releases/tag/v3.10.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46377.json",
        "https://github.com/TomWright/dasel/security/advisories/GHSA-m5j3-4634-c2vq",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-46377",
        "https://github.com/TomWright/dasel/commit/5fc1172287df89860caf139b146007d7ed12178c"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-129"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46377.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-46377",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506394,
  "published_at": "2026-07-16T17:57:16.643+00:00"
}