{"schemaVersion":3,"id":"CVE-2026-65651","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-09-21T11:34:05.930Z","modified":"2026-09-21T15:31:05.352Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","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/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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00672,"percentile":0.51211,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-09-22T00:00:00.000Z","score":0.00644,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00644,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00672,"percentile":0.51211}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00644,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00644,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00672,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00672,"percentile":0.51211}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"temporal technologies, inc.","product":"temporal server","name":"Temporal Server","label":"temporal server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.10.0, ≤ 1.29.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.30.0, < 1.30.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.31.0, < 1.31.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.10.0, ≤ 1.29.7 | ≥ 1.30.0, < 1.30.7 | ≥ 1.31.0, < 1.31.3","eol":null,"hubHref":"/vendor/temporal_technologies_inc/temporal_server"},{"vendor":"temporal technologies, inc.","product":"temporalio/sqlparser","name":"temporalio/sqlparser","label":"temporalio/sqlparser","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.0.0-20141206041240-1aae9baceee8, < 0.0.0-20260721183058-0466b6b405ac","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.0.0-20141206041240-1aae9baceee8, < 0.0.0-20260721183058-0466b6b405ac","eol":null,"hubHref":"/vendor/temporal_technologies_inc/temporaliosqlparser"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147","label":"github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147","hostname":"github.com","tags":["Product"]},{"url":"https://github.com/temporalio/sqlparser/pull/6","label":"github.com/temporalio/sqlparser/pull/6","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef","label":"github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/temporalio/sqlparser/tree/v0.1.0","label":"github.com/temporalio/sqlparser/tree/v0.1.0","hostname":"github.com","tags":["Product"]},{"url":"https://github.com/temporalio/sqlparser/pull/7","label":"github.com/temporalio/sqlparser/pull/7","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/temporalio/temporal/pull/11202","label":"github.com/temporalio/temporal/pull/11202","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132","label":"github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go","hostname":"github.com","tags":["Product"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.30.7","label":"github.com/temporalio/temporal/releases/tag/v1.30.7","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.31.3","label":"github.com/temporalio/temporal/releases/tag/v1.31.3","hostname":"github.com","tags":["Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-21T11:34:05.930Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-21T15:31:05.352Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:57:13.206Z","stale":false,"partial":false}}