CVE-2026-35194
Apache Flink: Remote code execution via SQL injection in code generation
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.1
Apache Flink: Remote code execution via SQL injection in code generation
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.
- Record
CVE-2026-35194- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
EUVDEUVD-2026-30550
8.1
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.
- Record
EUVD-2026-30550- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-2f54-v4hm-fx73
8.1
Apache Flink: Remote code execution via SQL injection in code generation
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.
- Record
GHSA-2f54-v4hm-fx73- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
NVD
8.1
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.
- Record
CVE-2026-35194- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
OSV
8.1
Apache Flink: Remote code execution via SQL injection in code generation
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.
- Record
CVE-2026-35194- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVGHSA-2f54-v4hm-fx73
8.1
Apache Flink: Remote code execution via SQL injection in code generation
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.
- Record
GHSA-2f54-v4hm-fx73- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVBIT-flink-2026-35194 No score
Apache Flink: Remote code execution via SQL injection in code generation
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.
- Record
BIT-flink-2026-35194- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.apache.flink:flink-table-planner_2.12Maven |
1.15.0 up to 1.20.4 | 1.20.4 |
org.apache.flink:flink-table-planner_2.12Maven |
2.0.0 up to 2.0.2 | 2.0.2 |
org.apache.flink:flink-table-planner_2.12Maven |
2.1.0 up to 2.1.2 | 2.1.2 |
org.apache.flink:flink-table-planner_2.12Maven |
2.2.0 up to 2.2.1 | 2.2.1 |
org.apache.flink:flink-table-api-javaMaven |
1.15.0 up to 1.20.4 | 1.20.4 |
org.apache.flink:flink-table-api-javaMaven |
2.0.0 up to 2.0.2 | 2.0.2 |
org.apache.flink:flink-table-api-javaMaven |
2.1.0 up to 2.1.2 | 2.1.2 |
org.apache.flink:flink-table-api-javaMaven |
2.2.0 up to 2.2.1 | 2.2.1 |
org.apache.flink:flink-table-runtimeMaven |
1.15.0 up to 1.20.4 | 1.20.4 |
org.apache.flink:flink-table-runtimeMaven |
2.0.0 up to 2.0.2 | 2.0.2 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.apache.flink:flink-table-runtimeMaven |
2.1.0 up to 2.1.2 | 2.1.2 |
org.apache.flink:flink-table-runtimeMaven |
2.2.0 up to 2.2.1 | 2.2.1 |
flinkBitnami |
1.15.0 up to 1.20.4, 2.0.0 up to 2.0.2, 2.1.0 up to 2.1.1, 2.2.0 up to 2.2.1 | 1.20.42.0.22.1.12.2.1 |
org.apache.flink:flink-table-planner_2.12Maven |
1.15.0 up to 1.20.4, plus listed versions 1.15.11.15.21.15.31.15.41.16.0 Show 16 moreShow less1.16.11.16.21.16.31.17.01.17.11.17.21.18.01.18.11.19.01.19.11.19.21.19.31.20.01.20.11.20.21.20.3 |
1.20.4 |
org.apache.flink:flink-table-planner_2.12Maven |
2.0.0 up to 2.0.2, plus listed versions 2.0-preview12.0.1 |
2.0.2 |
org.apache.flink:flink-table-planner_2.12Maven |
2.1.0 up to 2.1.2, plus listed versions 2.1.1 |
2.1.2 |
org.apache.flink:flink-table-api-javaMaven |
1.15.0 up to 1.20.4, plus listed versions 1.15.11.15.21.15.31.15.41.16.0 Show 16 moreShow less1.16.11.16.21.16.31.17.01.17.11.17.21.18.01.18.11.19.01.19.11.19.21.19.31.20.01.20.11.20.21.20.3 |
1.20.4 |
org.apache.flink:flink-table-api-javaMaven |
2.0.0 up to 2.0.2, plus listed versions 2.0-preview12.0.1 |
2.0.2 |
org.apache.flink:flink-table-api-javaMaven |
2.1.0 up to 2.1.2, plus listed versions 2.1.1 |
2.1.2 |
org.apache.flink:flink-table-runtimeMaven |
1.15.0 up to 1.20.4, plus listed versions 1.15.11.15.21.15.31.15.41.16.0 Show 16 moreShow less1.16.11.16.21.16.31.17.01.17.11.17.21.18.01.18.11.19.01.19.11.19.21.19.31.20.01.20.11.20.21.20.3 |
1.20.4 |
org.apache.flink:flink-table-runtimeMaven |
2.0.0 up to 2.0.2, plus listed versions 2.0-preview12.0.1 |
2.0.2 |
org.apache.flink:flink-table-runtimeMaven |
2.1.0 up to 2.1.2, plus listed versions 2.1.1 |
2.1.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | DexSemon/CVE-2026-35194 | 2026-07-02 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-35194 is a high vulnerability (CVSS 8.1) in Apache Flink, published May 15, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.38%, the 32nd percentile. Fixed in org.apache.flink:flink-table-planner_2.12 1.20.4.
References
lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x
openwall.com/lists/oss-security/2026/05/15/20
nvd.nist.gov/vuln/detail/CVE-2026-35194
github.com/apache/flink/commit/64007b131d689158af90ca1c1b71b018129a85c5
github.com/apache/flink/commit/8db22cf8fbc4c785f6ffd41c2fd3e8b64a9688cd
github.com/advisories/GHSA-2f54-v4hm-fx73
github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35194.json
github.com/apache/flink