CVE-2026-35194 — Vulnerability in flink-table-planner_2.12
Apache Flink: Remote code execution via SQL injection in code generation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.66%). Schedule for your next planned update.
Does your project use an affected org.apache.flink:flink-table-planner_2.12 version?
Paste your pom.xml to check it for CVE-2026-35194 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 15, 2026 (195 days ago).
- Last revised May 22, 2026 — 7 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-planner_2.12 -->
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-api-java -->
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-runtime -->
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-planner_2.12 -->
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-planner_2.12 -->
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-runtime -->
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-planner_2.12 -->
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-runtime -->
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-api-java -->
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-runtime -->
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-api-java -->
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-api-java -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (12)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.apache.flink:flink-table-planner_2.12 Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more) | 1.20.4 |
| org.apache.flink:flink-table-api-java Maven · Affected: 2.2.0 | 2.2.1 |
| org.apache.flink:flink-table-runtime Maven · Affected: 2.0-preview1, 2.0.0, 2.0.1 | 2.0.2 |
| org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.1.0, 2.1.1 | 2.1.2 |
| org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.0-preview1, 2.0.0, 2.0.1 | 2.0.2 |
| org.apache.flink:flink-table-runtime Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more) | 1.20.4 |
| org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.2.0 | 2.2.1 |
| org.apache.flink:flink-table-runtime Maven · Affected: 2.2.0 | 2.2.1 |
| org.apache.flink:flink-table-api-java Maven · Affected: 2.0-preview1, 2.0.0, 2.0.1 | 2.0.2 |
| org.apache.flink:flink-table-runtime Maven · Affected: 2.1.0, 2.1.1 | 2.1.2 |
| org.apache.flink:flink-table-api-java Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more) | 1.20.4 |
| org.apache.flink:flink-table-api-java Maven · Affected: 2.1.0, 2.1.1 | 2.1.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-35194ADVISORY
- https://github.com/apache/flink/commit/64007b131d689158af90ca1c1b71b018129a85c5WEB
- https://github.com/apache/flink/commit/8db22cf8fbc4c785f6ffd41c2fd3e8b64a9688cdWEB
- https://github.com/apache/flinkPACKAGE
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9xWEB
- https://www.openwall.com/lists/oss-security/2026/05/15/20WEB
Frequently Asked Questions
- What is CVE-2026-35194?
- Apache Flink: Remote code execution via SQL injection in code generation. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-35194?
- CVE-2026-35194 affects org.apache.flink:flink-table-planner_2.12, org.apache.flink:flink-table-api-java and org.apache.flink:flink-table-runtime. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-35194 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 46.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API