Home / Temporal Technologies, Inc. / temporalio/sqlparser / CVE-2026-65651
CVE-2026-65651: is it exploited, and which versions of Temporal Technologies, Inc. temporalio/sqlparser are affected and fixed?
CVE-2026-65651 is an uncontrolled recursion vulnerability in Temporal Technologies, Inc. temporalio/sqlparser. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: temporalio/sqlparser from 0.0.0-20141206041240-1aae9baceee8 before 0.0.0-20260721183058-0466b6b405ac, Temporal Server from 0.10.0 through 1.29.7, Temporal Server from 1.30.0 before 1.30.7 and 1 more (CVE record by Temporal). Fixed in 0.0.0-20260721183058-0466b6b405ac, 1.30.7 and 1.31.3 (CVE record by Temporal). Severity: High (8.7, CVSS 4.0, from Temporal).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:07 UTC.
What is 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.
From the CVE record by Temporal, last updated September 21, 2026, 15:31 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Temporal Technologies, Inc. | temporalio/sqlparser github.com/temporalio/sqlparser | from 0.0.0-20141206041240-1aae9baceee8 before 0.0.0-20260721183058-0466b6b405ac | 0.0.0-20260721183058-0466b6b405ac |
| Temporal Technologies, Inc. | Temporal Server go.temporal.io/server | from 0.10.0 through 1.29.7 from 1.30.0 before 1.30.7 from 1.31.0 before 1.31.3 | 1.30.7, 1.31.3 |
As the CVE record by Temporal states it, last updated September 21, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-65651?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | Temporal |
| High 7.1 | CVSS 4.0 | 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 | Temporal |
| Medium 6.0 | CVSS 4.0 | 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 | Temporal |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-65651 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, September 21, 2026)
- EPSS
- 0.64% probability of exploitation activity in the next 30 days, percentile 52.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-674 Uncontrolled Recursion
How do I fix it? (from the CVE record)
Upgrade github.com/temporalio/sqlparser to v0.0.0-20260721183058-0466b6b405ac or later; v0.0.0-20260722001706-17d16cfe1da5 is the preferred upgrade. Temporal Server operators should upgrade to 1.30.7, 1.31.3, or 1.32.0, as appropriate for the deployed minor release line. The parser changes reject excessive nesting before recursive AST consumers receive an attacker-deep tree.
Is there a workaround? (from the CVE record)
Applications can impose a conservative query-size or nesting limit before parsing and avoid recursively formatting or walking parser-produced trees derived from untrusted input. Temporal Server 1.29 and 1.30 operators can disable ListWorkers when it is unused, disable unused archival reads, and restrict namespace read permission to trusted principals. Go panic recovery is not an effective mitigation for runtime-fatal stack overflow.
Where are the vendor advisories and references?
- First affected sqlparser source revision product
- sqlparser nested-expression fix pull request patch
- First fixed sqlparser commit patch
- Fixed release tag v0.1.0 product
- Broader sqlparser AST-depth hardening patch
- Temporal Server dependency update patch
- Temporal Server 0.10.0 source-confirmed archival route product
- Temporal Server 1.30.7 release-notes
- Temporal Server 1.31.3 release-notes
Who found and reported it?
- An external security researcher who reported this issue responsibly to Temporal Technologies (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- July 22, 2026
- Published
- September 21, 2026, 11:34 UTC
- CVE record updated
- September 21, 2026, 15:31 UTC by Temporal
- NVD
- Awaiting Analysis, last modified September 22, 2026, 19:40 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:07 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect temporalio/sqlparser?
- Sep 21, 2026CVE-2026-16651 Temporal Technologies, Inc. temporalio/sqlparser: improper array index validation
Every CVE in temporalio/sqlparser
Questions about CVE-2026-65651
Is CVE-2026-65651 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.64% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Temporal Technologies, Inc. temporalio/sqlparser are affected by CVE-2026-65651?
temporalio/sqlparser from 0.0.0-20141206041240-1aae9baceee8 before 0.0.0-20260721183058-0466b6b405ac, Temporal Server from 0.10.0 through 1.29.7, Temporal Server from 1.30.0 before 1.30.7 and Temporal Server from 1.31.0 before 1.31.3, per the CVE record by Temporal. The tables above give every range the sources list.
Which version fixes CVE-2026-65651?
0.0.0-20260721183058-0466b6b405ac, 1.30.7 and 1.31.3, per the CVE record by Temporal. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-65651?
High (8.7, CVSS 4.0, from Temporal). The severity table above shows each score with its source.
Where is the official record of CVE-2026-65651?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.