CVE-2026-16651
temporalio/sqlparser malformed MySQL version comments can cause a panic
Mitigation
- Upgrade temporalio/sqlparser to 0.0.0-20260721183040-74181ffcbaaf or later.
- Upgrade Temporal Server to 1.31.3 or later.
- Vendor workaround: Until upgrading, applications can reject MySQL version comments before invoking the parser or recover parser panics on the parsing goroutine. Temporal Server 1.29 and 1.30 operators can set frontend.ListWorkersEnabled to false. On any affected Server release, restrict ListWorkers to trusted principals or apply the matching-handler panic-recovery change as interim containment. Panic recovery does not replace the parser fix.
Who should check
- Anyone running Temporal Technologies, Inc. temporalio/sqlparser >= 0.0.0-20180604150908-b055e9c9b4fa, < 0.0.0-20260721183040-74181ffcbaaf
- Anyone running Temporal Technologies, Inc. Temporal Server >= 1.29.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3
Vulnerability facts
- Affected
- Temporal Technologies, Inc. temporalio/sqlparser >= 0.0.0-20180604150908-b055e9c9b4fa, < 0.0.0-20260721183040-74181ffcbaaf; Temporal Technologies, Inc. Temporal Server >= 1.29.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3
- Fixed in
- Temporal Technologies, Inc. temporalio/sqlparser 0.0.0-20260721183040-74181ffcbaaf, Temporal Technologies, Inc. Temporal Server 1.30.7, Temporal Technologies, Inc. Temporal Server 1.31.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-129
- Modified
Description
temporalio/sqlparser can panic when Parse, ParseStrictDDL, or ParseNext processes a MySQL version comment whose contents are empty or consist only of one to five decimal digits. ExtractMysqlComment does not check the -1 result returned by strings.IndexFunc before using it as a slice boundary. The resulting Go runtime panic propagates unless the caller recovers it on the parsing goroutine, so applications that parse attacker-controlled SQL can terminate. Temporal Server exposes the affected parser through ListWorkers. When that API is enabled, an authenticated caller with namespace read permission can submit a malformed query that terminates the receiving Matching process. Repeated requests can sustain a denial of service. The issue affects availability only; no confidentiality or integrity impact was identified.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Temporal Technologies, Inc. temporalio/sqlparser | >= 0.0.0-20180604150908-b055e9c9b4fa, < 0.0.0-20260721183040-74181ffcbaaf | — | cvelist |
| Temporal Technologies, Inc. Temporal Server | >= 1.29.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-16651. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-16651.md Affected: Temporal Technologies, Inc. temporalio/sqlparser >= 0.0.0-20180604150908-b055e9c9b4fa, < 0.0.0-20260721183040-74181ffcbaaf; Temporal Technologies, Inc. Temporal Server >= 1.29.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3 Fixed in: Temporal Technologies, Inc. temporalio/sqlparser 0.0.0-20260721183040-74181ffcbaaf, Temporal Technologies, Inc. Temporal Server 1.30.7, Temporal Technologies, Inc. Temporal Server 1.31.3 Steps: 1. Search this machine and project for Temporal Technologies, Inc. temporalio/sqlparser, Temporal Technologies, Inc. Temporal Server: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-16651 being exploited?
There is no confirmed exploitation: CVE-2026-16651 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-16651?
High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-16651?
Temporal Technologies, Inc. temporalio/sqlparser >= 0.0.0-20180604150908-b055e9c9b4fa, < 0.0.0-20260721183040-74181ffcbaaf; Temporal Technologies, Inc. Temporal Server >= 1.29.0, <= 1.29.7; >= 1.30.0, < 1.30.7; >= 1.31.0, < 1.31.3.
Is there a fix for CVE-2026-16651?
Yes. Fixed in Temporal Technologies, Inc. temporalio/sqlparser 0.0.0-20260721183040-74181ffcbaaf, Temporal Technologies, Inc. Temporal Server 1.30.7, Temporal Technologies, Inc. Temporal Server 1.31.3. Upgrade temporalio/sqlparser to 0.0.0-20260721183040-74181ffcbaaf or later. Upgrade Temporal Server to 1.31.3 or later. Vendor workaround: Until upgrading, applications can reject MySQL version comments before invoking the parser or recover parser panics on the parsing goroutine. Temporal Server 1.29 and 1.30 operators can set frontend.ListWorkersEnabled to false. On any affected Server release, restrict ListWorkers to trusted principals or apply the matching-handler panic-recovery change as interim containment. Panic recovery does not replace the parser fix.
How do I check if I'm affected by CVE-2026-16651?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.