CVE-2026-35194 is a high-severity (CVSS 8.1) Code Injection vulnerability in org.apache.flink:flink-table-planner_2.12. A fix is available for org.apache.flink:flink-table-planner_2.12 — see the affected versions and patch details below.
Apache Flink: Remote code execution via SQL injection in code generation
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-35194.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2026-35194 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 247,569 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.apache.flink:flink-table-planner_2.12☕org.apache.flink:flink-table-planner_2.12☕org.apache.flink:flink-table-planner_2.12☕org.apache.flink:flink-table-planner_2.12☕org.apache.flink:flink-table-api-java☕org.apache.flink:flink-table-api-java☕org.apache.flink:flink-table-api-java☕org.apache.flink:flink-table-api-java+4 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.flink:flink-table-planner_2.12 | ≥ 1.15.0&&< 1.20.4 | 1.20.4org.apache.flink:flink-table-planner_2.12:1.20.4 |
| ☕Maven | org.apache.flink:flink-table-planner_2.12 | ≥ 2.0.0&&< 2.0.2 | 2.0.2org.apache.flink:flink-table-planner_2.12:2.0.2 |
| ☕Maven | org.apache.flink:flink-table-planner_2.12 | ≥ 2.1.0&&< 2.1.2 | 2.1.2org.apache.flink:flink-table-planner_2.12:2.1.2 |
| ☕Maven | org.apache.flink:flink-table-planner_2.12 | ≥ 2.2.0&&< 2.2.1 | 2.2.1org.apache.flink:flink-table-planner_2.12:2.2.1 |
| ☕Maven | org.apache.flink:flink-table-api-java | ≥ 1.15.0&&< 1.20.4 | 1.20.4org.apache.flink:flink-table-api-java:1.20.4 |
| ☕Maven | org.apache.flink:flink-table-api-java | ≥ 2.0.0&&< 2.0.2 | 2.0.2org.apache.flink:flink-table-api-java:2.0.2 |
Affected Products
flinkapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.flink:flink-table-planner_2.12, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.flink:flink-table-planner_2.12 to 1.20.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-35194 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2026-35194 in your dependencies?
Find it across Maven, including transitive dependencies.