Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/tomwright/dasel/v3
  4. ›
  5. CVE-2026-46378

CVE-2026-46378: Dasel: Denial of service in dasel selector lexer due to infinite loop on unterminated regex literal

May 19, 2026

dasel’s selector lexer enters a non-terminating loop when tokenizing an unterminated regex pattern such as r/abc. A 2-byte input (r/) is sufficient to cause the tokenizer to consume 100% CPU on one core indefinitely.

I confirmed the issue on v3.3.1 (fba653c7f248aff10f2b89fca93929b64707dfc8) and on master commit 0dd6132e0c58edbd9b1a5f7ffd00dfab1e6085ad. I also verified the same code path is present in v3.0.0 (648f83baf070d9e00db8ff312febef857ec090a3). No fix is available yet.

References

  • github.com/TomWright/dasel/commit/95f8dd3af12958bf6ca2a737b3ec0267280f86ed
  • github.com/TomWright/dasel/security/advisories/GHSA-m6xr-fvfg-5g64
  • github.com/advisories/GHSA-m6xr-fvfg-5g64
  • nvd.nist.gov/vuln/detail/CVE-2026-46378

Code Behaviors & Features

Detect and mitigate CVE-2026-46378 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.10.1

Fixed versions

  • 3.10.1

Solution

Upgrade to version 3.10.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

go/github.com/tomwright/dasel/v3/CVE-2026-46378.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:55 +0000.