CVE-2026-65651 — temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
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.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Technical severity (high)+6
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
No fix documented by the sources we poll. That does not mean none exists: check the vendor advisory.
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Temporal Technologies, Inc. Temporal Server, Temporal Technologies, Inc. Temporalio/sqlparser).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- No fix documented in the sources: reduce exposure and monitor the vendor advisory.
- Search available logs for exploit probes matching the vulnerability class (denial of service), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Temporal Technologies, Inc. | Temporal Server | ≥ 0.10.0 and ≤ 1.29.7≥ 1.30.0 and < 1.30.7≥ 1.31.0 and < 1.31.3 | Vulnerable | CVE Program (cve.org) e CISA ADP |
| Temporal Technologies, Inc. | Temporalio/sqlparser | ≥ 0.0.0-20141206041240-1aae9baceee8 and < 0.0.0-20260721183058-0466b6b405ac | Vulnerable | CVE Program (cve.org) e CISA ADP |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 8.7 | CVSS 4.0 | High | — | — | security@temporal.io via NIST National Vulnerability Database |
| 8.7 | CVSS 4.0 | High | — | — | Temporal via CVE Program (cve.org) e CISA ADP |
| 7.1 | CVSS 4.0 | High | — | — | Temporal via CVE Program (cve.org) e CISA ADP |
| 6.0 | CVSS 4.0 | Medium | — | — | Temporal via CVE Program (cve.org) e CISA ADP |
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X (score shown at the top: security@temporal.io) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Track CPU/memory spikes and availability drops correlated with request patterns.
Timeline
What happened to this CVE, newest first.
- 2026
- Affected products added · temporal technologies, inc./temporalio/sqlparser, temporal technologies, inc./temporal server
- SSVC assessment updated
- Record published
- CVSS changed · 8.7
- Source status changed · → Awaiting Analysis
- Record created in this database
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 1× Official description updated · Oct 15, 2026 – Oct 15, 2026
References
9 on the record
- github.com/temporalio/sqlparser/pull/6
- github.com/temporalio/sqlparser/pull/7
- github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef
- github.com/temporalio/temporal/pull/11202
- github.com/temporalio/temporal/releases/tag/v1.30.7
- github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147
- github.com/temporalio/temporal/releases/tag/v1.31.3
- github.com/temporalio/sqlparser/tree/v0.1.0
- github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParse
Elsewhere on this site
Related CVEs (same products)
- Medium CVE-2026-89140 Temporal Server internal completion callbacks are not bound to their namespace, allowing cross-namespace changes to Scheduler V2 schedule state 3d
- High CVE-2026-104355 Temporal Server applies inbound namespace replication from a connected peer cluster to local namespaces 3d
- High CVE-2026-89139 Temporal Server worker deployment compute provider executes a caller-supplied command on the Worker Service host 24d
- High CVE-2026-87858 Temporal Server completion callback source header can direct attacker-chosen requests to the internal frontend with administrator authorization 24d
- High CVE-2026-16651 temporalio/sqlparser malformed MySQL version comments can cause a panic 24d
- High CVE-2026-16652 Temporal Server Schedule exclusion search can cause excessive CPU consumption 24d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No FIRST EPSS score.
- No fixed version, patch or mitigation documented.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2026-65651 is "temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal", rated High. It affects Temporal Server (Temporal Technologies, Inc.); versions are in the scope table. It is not in CISA KEV, which does not rule out exploitation. CVSS 8.7 describes technical severity. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.