Back to list

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

GitHub · GitHub · CVE-2026-46378

ID
CVE-2026-46378
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.5

Summary

### Summary `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…

Product

go: github.com/tomwright/dasel/v3

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories