Skip to main content

CVE-2026-65651: CWE-674: Uncontrolled Recursion in Temporal Technologies, Inc. temporalio/sqlparser

0
High
VulnerabilityCVE-2026-65651cvecve-2026-65651cwe-674
Published: 09/21/2026 (09/21/2026, 11:34:05 UTC)
Source: CVE Database V5
Vendor/Project: Temporal Technologies, Inc.
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Temporal Technologies, Inc.

temporalio/sqlparser

Affected versions
>=0.0.0-20141206041240-1aae9baceee8 <0.0.0-20260721183058-0466b6b405ac

Temporal Technologies, Inc.

Temporal Server

Affected versions
>=0.10.0 <=1.29.7>=1.30.0 <1.30.7>=1.31.0 <1.31.3
github.com/temporalio/sqlparser
pkg:golang/github.com/temporalio/sqlparser
Affected versions
>=0.0.0-20141206041240-1aae9baceee8 <0.0.0-20260721183058-0466b6b405ac
go.temporal.io/server
pkg:golang/go.temporal.io/server
Affected versions
>=0.10.0 <=1.29.7>=1.30.0 <1.30.7>=1.31.0 <1.31.3
CPE configurations
cpe:2.3:a:temporal:temporal:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/21/2026, 12:02:09 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses