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

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T20:09:20.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-m6xr-fvfg-5g64, GO-2026-5493
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 selector lexer matchRegexPattern closure in (*Tokenizer).parseCurRune in selector/lexer/tokenize.go loops while tokenizing an unterminated regex literal such as r/ because peekRuneEqual returns false after the end of input, allowing attacker-controlled selector strings to consume CPU indefinitely. This issue is fixed in version 3.10.1.

(As written by CVE List.)

## Affected

- TomWright dasel: >= 3.0.0, < 3.10.1
- github.com/tomwright/dasel/v3 (Go): from 3.0.0 before 3.10.1
- github.com/tomwright/dasel (Go): all versions
- github.com/tomwright/dasel/v2 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/TomWright/dasel/security/advisories/GHSA-m6xr-fvfg-5g64> (exploit, advisory, web)
- <https://github.com/TomWright/dasel/commit/95f8dd3af12958bf6ca2a737b3ec0267280f86ed> (web)
- <https://github.com/TomWright/dasel> (package)

## Sources

- CVE List: [CVE-2026-46378](https://www.cve.org/CVERecord?id=CVE-2026-46378), CVE Terms of Use, modified 2026-07-17
- GitHub Advisory Database: [GHSA-m6xr-fvfg-5g64](https://github.com/advisories/GHSA-m6xr-fvfg-5g64), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5493](https://pkg.go.dev/vuln/GO-2026-5493), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-46378](https://nvd.nist.gov/vuln/detail/CVE-2026-46378), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-46378 · Whole record: https://cve.day/CVE-2026-46378.json · Rebuilt by cve.day 2026-11-25T22:59:28.419Z
