CVE-2026-65651

temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal

HIGH
8.7
CVSS Score
Published: September 21, 2026 at 11:34 AM UTC
Updated: September 22, 2026 at 07:51 PM UTC
2 products affected across 1 vendorTemporalSqlparser

Using temporalio/sqlparser by Temporal Technologies, Inc.?

Get instant alerts when new vulnerabilities affect temporalio/sqlparser - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.7
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.0.0-20141206041240-1aae9baceee8 ≤ v < 0.0.0-20260721183058-0466b6b405ac0.0.0-20141206041240-1aae9baceee8
Affected range stops below 0.0.0-20260721183058-0466b6b405ac, so it looks safe — our inference, not a vendor statement
0.10.0 ≤ v ≤ 1.29.71.30.0 ≤ v < 1.30.71.31.0 ≤ v < 1.31.30.10.01.30.01.31.0
Affected range stops below 1.30.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.31.3, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 0.0.0 (unknown)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.7HIGHTemporal
Vector?

Quick Info

StatusAWAITING ANALYSIS
CWE
CWE-674

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card