{"id":"CVE-2026-65651","aliases":["CVE-2026-65651"],"related":[],"kind":"vulnerability","state":"published","title":"temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-21T11:34:05.930Z","modified":"2026-09-22T19:40:05.870Z","severity":{"scorer":"Temporal","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"Temporal","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"Temporal","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"Temporal","scheme":"CVSS:4.0","vector":"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","score":6,"rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-20141206041240-1aae9baceee8","fixed":"0.0.0-20260721183058-0466b6b405ac","status":"affected"}],"vendor":"Temporal Technologies, Inc.","product":"temporalio/sqlparser","package":"github.com/temporalio/sqlparser","repo":"https://github.com/temporalio/sqlparser","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"0.10.0","status":"unknown"},{"type":"semver","introduced":"0.10.0","lastAffected":"1.29.7","status":"affected"},{"type":"semver","introduced":"1.30.0","fixed":"1.30.7","status":"affected"},{"type":"semver","introduced":"1.31.0","fixed":"1.31.3","status":"affected"}],"vendor":"Temporal Technologies, Inc.","product":"Temporal Server","package":"go.temporal.io/server","cpe":"cpe:2.3:a:temporal:temporal:*:*:*:*:*:*:*:*","repo":"https://github.com/temporalio/temporal","source":"cvelist"}],"references":[{"url":"https://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/sqlparser/pull/6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/sqlparser/tree/v0.1.0","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/sqlparser/pull/7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/temporal/pull/11202","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.30.7","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.31.3","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["An external security researcher who reported this issue responsibly to Temporal Technologies"],"assigner":"Temporal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-21T15:30:53.004Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65651","url":"https://www.cve.org/CVERecord?id=CVE-2026-65651","licence":"CVE Terms of Use","modified":"2026-09-21T15:31:05.352Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65651","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65651","licence":"Public domain","modified":"2026-09-22T19:40:05.870Z"}],"updatedAt":"2026-11-25T22:59:40.318Z","epss":{"score":0.00644,"percentile":0.52177,"date":"2026-12-01T12:00:22.000Z"}}