CVE-2026-65651: CWE-674: Uncontrolled Recursion in Temporal Technologies, Inc. temporalio/sqlparser
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.
AI Analysis
Technical Summary
The temporalio/sqlparser library accepts SQL queries containing deeply nested unary expressions without enforcing nesting limits. Its String and Walk operations recursively traverse the resulting abstract syntax tree, which can be arbitrarily deep. When an application parses attacker-controlled SQL and later formats or walks the tree, it may trigger a Go runtime stack overflow that crashes the process. Temporal Server passes caller-controlled queries through this parser in archival, visibility, and worker-query paths. In validation, the server recursively formats invalid expressions while constructing errors. An authenticated user with namespace read permission can exploit this to terminate Frontend or Matching processes, sustaining denial of service through repeated requests. The vulnerability impacts availability only and does not affect confidentiality or integrity.
Potential Impact
Exploitation of this vulnerability results in denial of service by causing a runtime-fatal stack overflow in Go, terminating affected Temporal Server processes such as Frontend or Matching. Attackers with namespace read permission can repeatedly trigger this condition, sustaining service disruption. There is no confidentiality or integrity impact identified.
Mitigation Recommendations
No official patch or fix is currently documented. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, limit exposure by restricting access to authenticated users with namespace read permission and monitor for unusual termination of Frontend or Matching processes. Avoid processing untrusted or attacker-controlled deeply nested SQL expressions where possible.
CVE-2026-65651: CWE-674: Uncontrolled Recursion in Temporal Technologies, Inc. temporalio/sqlparser
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.
CVSS v4.0
Score 8.7high
Affected software
Temporal Technologies, Inc.
temporalio/sqlparser
Temporal Technologies, Inc.
Temporal Server
pkg:golang/github.com/temporalio/sqlparserpkg:golang/go.temporal.io/servercpe:2.3:a:temporal:temporal:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The temporalio/sqlparser library accepts SQL queries containing deeply nested unary expressions without enforcing nesting limits. Its String and Walk operations recursively traverse the resulting abstract syntax tree, which can be arbitrarily deep. When an application parses attacker-controlled SQL and later formats or walks the tree, it may trigger a Go runtime stack overflow that crashes the process. Temporal Server passes caller-controlled queries through this parser in archival, visibility, and worker-query paths. In validation, the server recursively formats invalid expressions while constructing errors. An authenticated user with namespace read permission can exploit this to terminate Frontend or Matching processes, sustaining denial of service through repeated requests. The vulnerability impacts availability only and does not affect confidentiality or integrity.
Potential Impact
Exploitation of this vulnerability results in denial of service by causing a runtime-fatal stack overflow in Go, terminating affected Temporal Server processes such as Frontend or Matching. Attackers with namespace read permission can repeatedly trigger this condition, sustaining service disruption. There is no confidentiality or integrity impact identified.
Mitigation Recommendations
No official patch or fix is currently documented. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, limit exposure by restricting access to authenticated users with namespace read permission and monitor for unusual termination of Frontend or Matching processes. Avoid processing untrusted or attacker-controlled deeply nested SQL expressions where possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Temporal
- Date Reserved
- 2026-07-22T18:08:48.925Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab1194455bf5e2cf5d2cb4c
Added to database: 09/21/2026, 11:47:16 UTC
Last enriched: 09/21/2026, 12:02:09 UTC
Last updated: 09/21/2026, 15:47:16 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.