CVE-2026-65651
published high CVSS 4.0 · 8.7temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Temporal Technologies, Inc. | — | github.com/temporalio/sqlparsertemporalio/sqlparser · 0.0.0-20141206041240-1aae9baceee8 to < 0.0.0-20260721183058-0466b6b405ac · Other versions: unaffected | Affected | Not stated | Temporal |
| Temporal Technologies, Inc. | — | go.temporal.io/serverTemporal Server · 0.0.0 to < 0.10.0 (unknown · semver) · 0.10.0 through 1.29.7 (affected · semver) · 1.30.0 to < 1.30.7 (affected · semver) · 1.31.0 to < 1.31.3 (affected · semver) · Other versions: unaffected | Version-specific | Not stated | Temporal |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- Temporal · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: temporalio/sqlparser reasonable worst-case network service embedding
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 4.0 | 7.1 | high | Temporal · cna | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | en: Temporal Server visibility or archival query path in a supported authenticated deployment |
| 4.0 | 6.0 | medium | Temporal · cna | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | en: Dynamically confirmed Temporal Server ListWorkers path with retained worker state |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Temporal Technologies, Inc. | temporalio/sqlparser | 0.0.0-20141206041240-1aae9baceee8 to < 0.0.0-20260721183058-0466b6b405ac (affected · semver)Default: unaffected | Temporal · cna |
| Temporal Technologies, Inc. | Temporal Server | 0.0.0 to < 0.10.0 (unknown · semver)0.10.0 through 1.29.7 (affected · semver)1.30.0 to < 1.30.7 (affected · semver)1.31.0 to < 1.31.3 (affected · semver)Default: unaffected | Temporal · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
9- First fixed sqlparser commit https://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef
- First affected sqlparser source revision https://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147
- sqlparser nested-expression fix pull request https://github.com/temporalio/sqlparser/pull/6
- Broader sqlparser AST-depth hardening https://github.com/temporalio/sqlparser/pull/7
- Fixed release tag v0.1.0 https://github.com/temporalio/sqlparser/tree/v0.1.0
- Temporal Server 0.10.0 source-confirmed archival route https://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132
- Temporal Server dependency update https://github.com/temporalio/temporal/pull/11202
- Temporal Server 1.30.7 https://github.com/temporalio/temporal/releases/tag/v1.30.7
- Temporal Server 1.31.3 https://github.com/temporalio/temporal/releases/tag/v1.31.3
Provider assertions
2Temporal · cna
temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6652977bc83f88399d4f1e822383d44986ae0988a179f36de06cdffebfd68f8a
- Ingested
- 23 Sep 2026, 09:26:32 UTC
- Source record
- Official CVE record