Skip to main content
VulnerabilityPublished

CVE-2026-65651: Temporal Technologies temporalio/sqlparser · Uncontrolled Recursion

Affects Temporal Technologies temporalio/sqlparserSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 0.0.0-20260721183058-0466b6b405ac soon.

Data as of 5 Nov 2026, 00:01 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.0.0-20260721183058-0466b6b405ac, 1.31.3, 1.30.7
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.

What to do

Upgrade temporalio/sqlparser and github.com/temporalio/sqlparser to 0.0.0-20260721183058-0466b6b405ac; Temporal Server and go.temporal.io/server to 1.31.3 or 1.30.7.

Affected software

ProductAffectedFixed in
Temporal Technologies, Inc.temporalio/sqlparserAffected
  • >=0.0.0-20141206041240-1aae9baceee8 <0.0.0-20260721183058-0466b6b405ac
Fixed in
  • 0.0.0-20260721183058-0466b6b405ac
Temporal Technologies, Inc.Temporal ServerAffected
  • >=0.10.0 <=1.29.7
  • >=1.30.0 <1.30.7
  • >=1.31.0 <1.31.3
Fixed in
  • 1.31.3
  • 1.30.7
Gogithub.com/temporalio/sqlparserpkg:golang/github.com/temporalio/sqlparserOther threatsAffected
  • >=0.0.0-20141206041240-1aae9baceee8 <0.0.0-20260721183058-0466b6b405ac
Fixed in
  • 0.0.0-20260721183058-0466b6b405ac
Gogo.temporal.io/serverpkg:golang/go.temporal.io/serverOther threatsAffected
  • >=0.10.0 <=1.29.7
  • >=1.30.0 <1.30.7
  • >=1.31.0 <1.31.3
Fixed in
  • 1.30.7
  • 1.31.3

CPE configurations (1)

  • cpe:2.3:a:temporal:temporal:*:*:*:*:*:*:*:*

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, limit exposure by restricting access to authenticated users with namespace read permission and monitor for unusual termination of Frontend or Matching processes. Avoid processing untrusted or attacker-controlled deeply nested SQL expressions where possible.

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.

References

Community reviews

Loading reviews…