CVE-2026-35194
highpriority · track · 10EPSS 0.004 · 32 %ileexploit · PoCEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (21)
Products and version ranges known to be affected.
- Maven org.apache.flink:flink-table-api-java1.15.0 → 1.20.4osvUSpkg:maven/org.apache.flink/flink-table-api-java
- Maven org.apache.flink:flink-table-api-java2.0.0 → 2.0.2osvUSpkg:maven/org.apache.flink/flink-table-api-java
- Maven org.apache.flink:flink-table-api-java2.1.0 → 2.1.2osvUSpkg:maven/org.apache.flink/flink-table-api-java
- Maven org.apache.flink:flink-table-api-java2.2.0 → 2.2.1osvUSpkg:maven/org.apache.flink/flink-table-api-java
- Maven org.apache.flink:flink-table-planner_2.121.15.0 → 1.20.4osvUSpkg:maven/org.apache.flink/flink-table-planner_2.12
- Maven org.apache.flink:flink-table-planner_2.122.0.0 → 2.0.2osvUSpkg:maven/org.apache.flink/flink-table-planner_2.12
- Maven org.apache.flink:flink-table-planner_2.122.1.0 → 2.1.2osvUSpkg:maven/org.apache.flink/flink-table-planner_2.12
- Maven org.apache.flink:flink-table-planner_2.122.2.0 → 2.2.1osvUSpkg:maven/org.apache.flink/flink-table-planner_2.12
- Maven org.apache.flink:flink-table-runtime1.15.0 → 1.20.4osvUSpkg:maven/org.apache.flink/flink-table-runtime
- Maven org.apache.flink:flink-table-runtime2.0.0 → 2.0.2osvUSpkg:maven/org.apache.flink/flink-table-runtime
- Maven org.apache.flink:flink-table-runtime2.1.0 → 2.1.2osvUSpkg:maven/org.apache.flink/flink-table-runtime
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-2f54-v4hm-fx73Apache Flink: Remote code execution via SQL injection in code generation2026-05-15ghsa · osvUS
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.
- BIT-flink-2026-35194Apache Flink: Remote code execution via SQL injection in code generation2026-05-19vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9xPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-35194cnnvd
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9xenisa_euvd
- http://www.openwall.com/lists/oss-security/2026/05/15/20Mailing ListThird Party Advisorynvd
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9xMailing ListVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan