Skip to main content

Temporal Server CVE-2026-65651

| EUVDEUVD-2026-83892 HIGH
Uncontrolled Recursion (CWE-674)
2026-09-21 Temporal GHSA-7vcf-7m3r-v7x3
8.7
CVSS 4.0 · Vendor: Temporal
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with namespace read permission
  2. Delivery
    Craft SQL with deeply nested unary expressions
  3. Exploit
    Submit via visibility/archival/worker-query path
  4. Execution
    Parser builds deep AST, String/Walk recurses
  5. Persist
    Go stack overflow fatally crashes Frontend/Matching
  6. Impact
    Repeat requests to sustain denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Requires an authenticated caller with namespace read permission against a Temporal Server deployment that routes caller-controlled SQL through the temporalio/sqlparser parser - specifically the archival, visibility, or worker-query paths (validation paths that recursively format an invalid expression when constructing an error). The attacker must supply SQL containing deeply nested unary expressions so the returned AST is correspondingly deep; String or Walk traversal then overflows the Go stack. LIMITING FACTORS: authentication with namespace read permission is required (contradicting the vector's PR:N); the dynamically confirmed ListWorkers route additionally requires at least one retained worker heartbeat; impact is availability-only (crashes Frontend/Matching, unrecoverable via Go panic recovery); patched in Temporal Server v1.30.7 and v1.31.3.

Impact

This is a genuine but bounded availability issue (CWE-674 uncontrolled recursion → unrecoverable Go stack overflow). The vendor CVSS 4.0 vector is 8.7 (High) with AV:N/AC:L/PR:N/UI:N/VA:H, which is availability-only (VC:N/VI:N) - the description confirms 'availability only; no confidentiality or integrity impact.' There is a notable conflict between the vector's PR:N and the prose: the description explicitly states exploitation occurs 'in a supported authenticated deployment' by 'a caller with namespace read permission,' which is authenticated access, implying PR:L rather than PR:N - the 8.7 score is inflated by treating this as unauthenticated. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no evidence of active or automated exploitation; this is a self-reported finding by Temporal with a vendor patch, not an in-the-wild threat. The real-world priority is moderate: exploitation is trivial once a caller holds namespace read permission and crashes are unrecoverable (panic recovery cannot contain a fatal stack overflow), but the authentication requirement and availability-only impact keep it below critical. Signals are consistent (all point to DoS); the main caveat is the PR:N vs. authenticated-caller discrepancy - verify auth requirements against the Temporal advisory.

Exploit ScenarioDerived

An authenticated caller holding namespace read permission submits a visibility/archival/worker query whose SQL contains thousands of nested unary expressions (e.g. deeply stacked NOT/unary-minus operators). When the Temporal Server parses and then formats or walks the resulting deep AST - including while building an error for an invalid expression - the recursive String/Walk traversal overflows the Go stack and fatally terminates the Frontend or Matching process. No public POC was provided, but the flaw is dynamically confirmed by the vendor on the ListWorkers route (which additionally needs at least one retained worker heartbeat), and repeated requests sustain the outage.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 21, 2026

Denial of service in Temporal Server stems from uncontrolled recursion (CWE-674) in the bundled temporalio/sqlparser library: SQL containing deeply nested unary expressions is accepted and produces a correspondingly deep abstract syntax tree, and the library's recursive String and Walk traversals then exhaust the Go stack and abort the process in a way that Go panic recovery cannot contain. Affected are Temporal Server deployments prior to v1.30.7 and v1.31.3 that pass caller-controlled query text to the parser through the archival, visibility, and worker-query paths, including validation code that recursively formats an invalid expression while constructing an error. Exploitation requires an authenticated caller holding namespace read permission (the published CVSS 4.0 vector lists PR:N, but the reported prerequisites specify an authenticated caller and the independent assessment scores PR:L), the dynamically confirmed ListWorkers route additionally requires at least one retained worker heartbeat, and repeated requests can sustain the outage; impact is availability-only and no public exploit code or confirmed active exploitation was identified at time of analysis.

RemediationAI

Apply the vendor-released patch by upgrading Temporal Server to v1.30.7 or v1.31.3 (https://github.com/temporalio/temporal/releases/tag/v1.30.7, https://github.com/temporalio/temporal/releases/tag/v1.31.3), which is delivered through the dependency bump in https://github.com/temporalio/temporal/pull/11202 raising github.com/temporalio/sqlparser to v0.0.0-20260722001706-17d16cfe1da5; downstream consumers that vendor the library directly should move to the sqlparser revisions containing the nesting limit (commits 0466b6b405accfaa781e4bef417933efc18bcaef and 1aae9baceee8e48525da8f56b07bf6a5ca7eb147, PRs #6 and #7). If upgrading immediately is not possible, the effective compensating controls are access-oriented rather than technical: restrict namespace read permission to fully trusted principals and close off the archival, visibility, worker-query, and ListWorkers query surfaces to untrusted tenants, since any caller who can reach those paths and can trigger a traversal of the deep tree can kill the process (trade-off: this narrows tenant functionality and relies on authorization hygiene rather than fixing the parser). Raising the Go runtime stack limit with debug.SetMaxStack only moves the overflow threshold and increases per-goroutine memory consumption, so it is at best a stop-gap and not containment. Because the fault is a runtime-fatal stack overflow, HTTP/gRPC panic-recovery middleware cannot help; run Frontend and Matching under a supervisor with automatic restart to shorten each outage window, and add coarse request-level limits on query size or nesting depth at the gateway edge as a temporary filter (trade-off: legitimate deeply nested queries will be rejected and the filter must be maintained until the patched build is deployed).

Affected VersionsENISA

Temporal Server 0.10.0 ≤1.29.7
temporalio/sqlparser 0.0.0-20141206041240-1aae9baceee8 <0.0.0-20260721183058-0466b6b405ac
Temporal Server 1.31.0 <1.31.3
Temporal Server 1.30.0 <1.30.7

Affected Packages

euvd temporal_server fix: 1.30.7, 1.31.3
euvd temporalio_sqlparser fix: 0.0.0-20260721183058-0466b6b405ac

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-674 (uncontrolled recursion) in temporalio/sqlparser, a Go SQL parser used by Temporal Server. The parser imposes no applicable nesting limit on unary expressions, so attacker-supplied SQL with deeply nested unary operators yields a correspondingly deep AST; later recursive operations on that tree - the library's String formatting and Walk traversal - consume unbounded goroutine stack. In Go, stack exhaustion is a runtime-fatal condition rather than a recoverable panic, so recover()/panic-recovery middleware cannot contain it and the hosting process (Temporal Frontend or Matching) dies. Temporal's exposure is at the dependency boundary: CPE data lists both temporalio/sqlparser and Temporal Server as affected products, and the upstream SQL passes through queryParser.go in the archival filestore path (referenced at temporal v0.10.0), plus the visibility and worker-query paths, with the ListWorkers route confirmed dynamically. Fixes were made in the library itself - PRs #6 and #7 and commits 0466b6b405accfaa781e4bef417933efc18bcaef and 1aae9baceee8e48525da8f56b07bf6a5ca7eb147 (tree v0.1.0) - enforcing a nesting limit, and Temporal Server PR #11202 bumps the module dependency from github.com/temporalio/sqlparser v0.0.0-20260721183058-0466b6b405ac to v0.0.0-20260722001706-17d16cfe1da5 in go.mod/go.sum. The impact profile is availability-only: no confidentiality or integrity effect was identified.

Know when Go gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Temporal) PRIMARY 8.7 HIGH
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
vuln.today AI 6.5 MEDIUM

Description requires an authenticated caller with namespace read permission (PR:L, not PR:N); low complexity, network-reachable, availability-only fatal process crash so A:H, C:N/I:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Temporal).

CVSS VectorVendor: Temporal

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Temporal Server deployments older than v1.30.7 and v1.31.3 can be forced to crash by crafted SQL query text, abruptly taking workflow orchestration offline for every namespace hosted on the affected cluster rather than degrading gracefully. The failure aborts the process in a way the runtime cannot recover from, so availability depends on restart and the condition can be triggered repeatedly by any caller meeting the access prerequisites. No public exploit code or active exploitation was identified at time of analysis, and vendor-released patches are available, making this a manageable but urgent availability risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
Medium
Popular cloud-native workflow orchestration engine, common in microservices but not everywhere
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Go

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2016-5386 HIGH
8.1 Jul 19

The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there

CVE-2025-68121 CRITICAL POC
10.0 Feb 05

Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu

CVE-2019-14809 CRITICAL POC
9.8 Aug 13

net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization by

CVE-2026-90942 CRITICAL POC
9.3 Sep 14

Casdoor through 4.4.0 exposes its instance-wide built-in JWT signing private key unmasked through the /api/get-certs and

CVE-2026-101090 CRITICAL POC
9.3 Sep 27

Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re

CVE-2026-78428 HIGH POC
8.8 Sep 17

Session cross-wiring in SUSE NeuVector before 5.6.1 allows an unauthenticated remote attacker to obtain another user's a

CVE-2026-92791 HIGH POC
8.7 Sep 16

Unauthenticated path traversal in Uber Kraken through 0.1.29 allows remote attackers to read files outside the configure

CVE-2018-7187 HIGH POC
8.8 Feb 16

The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import pa

CVE-2026-16651 HIGH POC
8.7 Sep 21

Denial of service in Temporal Server allows an authenticated caller holding at least namespace read permission to crash

CVE-2026-82405 HIGH POC
8.7 Sep 23

Account takeover in Klever-Go's KleverUpdateAccountPermission built-in (all versions prior to 1.7.20) allows an attacker

CVE-2026-82409 HIGH POC
8.4 Sep 23

Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy