CVE-2026-65651
temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
02 Description
temporalio/sqlparser deeply nested unary expressions can cause a fatal stack overflow during AST traversal
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.67% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 51.5% of scored records. A rank, not a probability.
- NVD base score
- 8.7 (CVSS v4.0), scored by the NVD independently of the CNA.
- NVD CVSS 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
- NVD analysis status
- Awaiting Analysis. NVD last modified this record on 2026-09-22.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2026-09-21 11:34Z1 MO AGO
- Last updated
- 2026-09-21 15:31Z1 MO AGO
- Reserved
- 2026-07-22
- Assigning CNA
- Temporal
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.7)
- CNA CVSS 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
- Weaknesses
- CWE-674Uncontrolled RecursionClass
- Data version
- 5.2
- Document digest
- d7a084b3ee6ac2640e87fe68b57ea9c0e81bc61e189868737664597926e0c753
05 Affected products
06 References
- github.comFirst affected sqlparser source revisionhttps://github.com/temporalio/sqlparser/commit/1aae9baceee8e48525da8f56b07bf6a5ca7eb147
- github.comsqlparser nested-expression fix pull requesthttps://github.com/temporalio/sqlparser/pull/6
- github.comFirst fixed sqlparser commithttps://github.com/temporalio/sqlparser/commit/0466b6b405accfaa781e4bef417933efc18bcaef
- github.comFixed release tag v0.1.0https://github.com/temporalio/sqlparser/tree/v0.1.0
- github.comBroader sqlparser AST-depth hardeninghttps://github.com/temporalio/sqlparser/pull/7
- github.comTemporal Server dependency updatehttps://github.com/temporalio/temporal/pull/11202
- github.comTemporal Server 0.10.0 source-confirmed archival routehttps://github.com/temporalio/temporal/blob/v0.10.0/common/archiver/filestore/queryParser.go#L77-L132
- github.comTemporal Server 1.30.7https://github.com/temporalio/temporal/releases/tag/v1.30.7
- github.comTemporal Server 1.31.3https://github.com/temporalio/temporal/releases/tag/v1.31.3
07 Remediation
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.