Skip to content

Temporal Server

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

CVE-2026-65651Published 21 Sep 2026, 11:34 UTC

Real-world risk

2.0/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from Temporal)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Temporal ServerNiche>= 0.10.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.31.30.7, 1.31.3
temporalio/sqlparserNiche>= 0.0.0-20141206041240-1aae9baceee8, < 0.0.0-20260721183058-0466b6b405ac0.0.0-20260721183058-0466b6b405ac

What to do

Update to a fixed version: 1.30.7, 1.31.3, 0.0.0-20260721183058-0466b6b405ac.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.6% chance of exploitation in 30 days (percentile 52), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.600
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 0.6 × threat 0.852.040
  4. Rounded to one decimal between 0.1 and 102.0

How the score works

Exploitation and evidence timeline

  1. 21 Sep 2026 Published
  2. 3 Dec 2026 Risk 2.0 (cvss fallback)

Weakness

CWE-674

References

Get alerts for Temporal Server

Free email or text alerts when a vulnerability in Temporal Server reaches risk 8 or higher. Nothing else.