CVE-2026-35194
published high CVSS 3.1 · 8.1Apache Flink: Remote code execution via SQL injection in code generation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Flink1.15.0 to < 1.20.4,2.0.2,2.1.2,2.2.1 · Other versions: unaffected | Affected | Not stated | apache |
Description
Code injection in SQL code generation in Apache Flink 1.15.0 through 1.20.x and 2.0.0 through 2.x allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers via maliciously crafted SQL queries. The vulnerability affects JSON functions (1.15.0+) and LIKE expressions with ESCAPE clauses (1.17.0+). User-controlled strings are interpolated into generated Java code without proper escaping, allowing attackers to break out of string literals and inject arbitrary expressions. Users are recommended to upgrade to either version 1.20.4, 2.0.2, 2.1.2 or 2.2.1, which fixes this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Flink | 1.15.0 to < 1.20.4,2.0.2,2.1.2,2.2.1 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
3apache · cna
Apache Flink: Remote code execution via SQL injection in code generation
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e587980ae373f363c86da6bfb49438f2fcade9fdaf1a9044d23517231b0b8380
- Ingested
- 23 Sep 2026, 09:11:31 UTC
- Source record
- Official CVE record