Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-35194
Published:May 15, 2026
Updated:May 18, 2026
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
org.apache.flink:flink-table-api-java (JAVA):
Affected version(s) >=2.1.0 <2.1.2
Fix Suggestion:
Update to version 2.1.2
org.apache.flink:flink-table-api-java (JAVA):
Affected version(s) >=2.0.0 <2.0.2
Fix Suggestion:
Update to version 2.0.2
org.apache.flink:flink-table-api-java (JAVA):
Affected version(s) =2.2.0 <2.2.1
Fix Suggestion:
Update to version 2.2.1
org.apache.flink:flink-table-planner_2.12 (JAVA):
Affected version(s) >=1.15.0 <1.20.4
Fix Suggestion:
Update to version 1.20.4
org.apache.flink:flink-table-planner_2.12 (JAVA):
Affected version(s) >=2.1.0 <2.1.2
Fix Suggestion:
Update to version 2.1.2
org.apache.flink:flink-table-planner_2.12 (JAVA):
Affected version(s) >=2.0.0 <2.0.2
Fix Suggestion:
Update to version 2.0.2
org.apache.flink:flink-table-api-java (JAVA):
Affected version(s) >=1.15.0 <1.20.4
Fix Suggestion:
Update to version 1.20.4
org.apache.flink:flink-table-planner_2.12 (JAVA):
Affected version(s) =2.2.0 <2.2.1
Fix Suggestion:
Update to version 2.2.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
0.05