{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-65651","id":"CVE-2026-65651","title":"temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal","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 t","descriptionLong":"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.","published":"2026-09-21T11:34:05.930Z","updated":"2026-10-28T02:30:39.109311928Z","reserved":"2026-07-22T18:08:48.925Z","status":"Awaiting Analysis","rejected":false,"assigner":"Temporal","metric":{"version":"4.0","score":8.7,"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","rating":"high","source":"Temporal"},"metrics":[{"version":"4.0","score":8.7,"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","rating":"high","source":"Temporal"},{"version":"4.0","score":7.1,"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","rating":"high","source":"Temporal"},{"version":"4.0","score":6,"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","rating":"medium","source":"Temporal"},{"version":"4.0","score":8.7,"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","rating":"high","source":"temporal.io"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"high","products":["Temporal Technologies, Inc. temporalio/sqlparser","Temporal Technologies, Inc. Temporal Server"],"affectedProducts":[{"vendor":"Temporal Technologies, Inc.","product":"temporalio/sqlparser","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0.0.0-20141206041240-1aae9baceee8","lessThan":"0.0.0-20260721183058-0466b6b405ac","versionType":"semver"}],"platforms":[]},{"vendor":"Temporal Technologies, Inc.","product":"Temporal Server","defaultStatus":"unaffected","versions":[{"status":"unknown","version":"0.0.0","lessThan":"0.10.0","versionType":"semver"},{"status":"affected","version":"0.10.0","lessThanOrEqual":"1.29.7","versionType":"semver"},{"status":"affected","version":"1.30.0","lessThan":"1.30.7","versionType":"semver"},{"status":"affected","version":"1.31.0","lessThan":"1.31.3","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-674"],"aliases":[],"references":[{"url":"https://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147","tags":["product","fix"]},{"url":"https://github.com/temporalio/sqlparser/pull/6","tags":["patch","fix"]},{"url":"https://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef","tags":["patch","fix"]},{"url":"https://github.com/temporalio/sqlparser/tree/v0.1.0","tags":["product","web"]},{"url":"https://github.com/temporalio/sqlparser/pull/7","tags":["patch","fix"]},{"url":"https://github.com/temporalio/temporal/pull/11202","tags":["patch","fix"]},{"url":"https://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132","tags":["product","web"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.30.7","tags":["release-notes","advisory"]},{"url":"https://github.com/temporalio/temporal/releases/tag/v1.31.3","tags":["release-notes","advisory"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65651.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65651","tags":["advisory"]},{"url":"https://github.com/temporalio/sqlparser","tags":["package"]},{"url":"https://github.com/temporalio/temporal","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00672,"epssPercentile":0.52867,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-65651","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65651","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-65651","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-65651","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}