temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
CVE-2026-65651Published 21 Sep 2026, 11:34 UTC
Real-world risk
2.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from Temporal)
temporalio/sqlparser accepts SQL containing deeply nested unary expressions and can return a correspondingly deep abstract syntax tree without enforcing an applicable nesting limit. The library's String and Walk operations recursively traverse that tree. An application that parses attacker-controlled SQL and later formats or walks the returned tree can encounter a runtime-fatal Go stack overflow that terminates the process; Go panic recovery cannot contain this condition. Temporal Server passes caller-controlled query input through the affected parser in archival, visibility, and worker-query paths. In affected validation paths, the Server recursively formats an invalid expression while constructing an error. In a supported authenticated deployment, a caller with namespace read permission can terminate the receiving Frontend or Matching process. The dynamically confirmed ListWorkers route additionally requires at least one retained worker heartbeat. Repeated requests can sustain a denial of service. The issue affects availability only; no confidentiality or integrity impact was identified.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Temporal ServerNiche | >= 0.10.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3 | 1.30.7, 1.31.3 |
| temporalio/sqlparserNiche | >= 0.0.0-20141206041240-1aae9baceee8, < 0.0.0-20260721183058-0466b6b405ac | 0.0.0-20260721183058-0466b6b405ac |
What to do
Update to a fixed version: 1.30.7, 1.31.3, 0.0.0-20260721183058-0466b6b405ac.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 52), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.6 × threat 0.852.040
- Rounded to one decimal between 0.1 and 102.0
Exploitation and evidence timeline
- 21 Sep 2026 Published
- 3 Dec 2026 Risk 2.0 (cvss fallback)
Weakness
CWE-674
References
- https://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147product
- https://github.com/temporalio/sqlparser/pull/6patch
- https://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaefpatch
- https://github.com/temporalio/sqlparser/tree/v0.1.0product
- https://github.com/temporalio/sqlparser/pull/7patch
- https://github.com/temporalio/temporal/pull/11202patch
- https://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132product
- https://github.com/temporalio/temporal/releases/tag/v1.30.7release-notes
- https://github.com/temporalio/temporal/releases/tag/v1.31.3release-notes
- CVE-2026-65651 on CVE.org