CVE-2026-65651

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

  • High 8.7

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.

Key facts

Published
21 Sep 2026
Last changed
21 Sep 2026
Assigned by
Temporal
EPSS
0.672% likely to be exploited in the next 30 days, higher than 52.663% of CVEs (scores for 16 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: partial

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 8.7CVSS 4.0, Highfrom the CNA (Temporal)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
  • 7.1CVSS 4.0, Highfrom the CNA (Temporal)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
  • 6.0CVSS 4.0, Mediumfrom the CNA (Temporal)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

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
Temporal Technologies, Inc.temporalio/sqlparser
  • Default status: unaffected
  • 0.0.0-20141206041240-1aae9baceee8 up to but excluding 0.0.0-20260721183058-0466b6b405ac (affected)
Temporal Technologies, Inc.Temporal Server
  • Default status: unaffected
  • 0.0.0 up to but excluding 0.10.0 (unknown)
  • 0.10.0 up to and including 1.29.7 (affected)
  • 1.30.0 up to but excluding 1.30.7 (affected)
  • 1.31.0 up to but excluding 1.31.3 (affected)

Timeline

  1. 21 Sep 2026 Published

Weakness

References