CVE-2026-65651 json
temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
published 2026-09-21 49 d ago modified 2026-09-22 47 d ago also EUVD-2026-83892
- cvss
- 8.7
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Temporal Technologies, Inc. temporalio/sqlparser 0.0.0-20260721183058-0466b6b405ac
- Temporal Technologies, Inc. Temporal Server 1.30.7, 1.31.3
- github.com/temporalio/sqlparser@1aae9ba commit
- github.com/temporalio/sqlparser@0466b6b commit
- github.com/temporalio/sqlparser#6 pull request
- github.com/temporalio/sqlparser#7 pull request
- github.com/temporalio/temporal#11202 pull request
- github.com/temporalio/temporal/releases/tag/v1.30.7 release
- github.com/temporalio/temporal/releases/tag/v1.31.3 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 48 d ago
Exploit prediction
0.67% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 4.0 | 7.1 | 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 |
| CNA | 4.0 | 6.0 | 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 |
| CNA | 4.0 | 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- Temporal Technologies, Inc. temporalio/sqlparser
- Temporal Technologies, Inc. Temporal Server
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147
product
-
github.com
/temporalio/sqlparser/pull/6
patch
-
github.com
/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef
patch
-
github.com
/temporalio/sqlparser/pull/7
patch
-
github.com
/temporalio/temporal/pull/11202
patch
-
github.com
/temporalio/sqlparser/tree/v0.1.0
product
-
github.com
/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132
product
-
github.com
/temporalio/temporal/releases/tag/v1.30.7
release-notes
-
github.com
/temporalio/temporal/releases/tag/v1.31.3
release-notes
Sources
- CVE List CVE-2026-65651
- NVD CVE-2026-65651
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.