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.
Fix
Public exploits 1
- DexSemon/CVE-2026-35194 PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 1
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x Mailing List, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.1 · apacheNVD modified 2026-10-26 14:10
Affected (CPE criteria) 4
cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*cpe:2.3:a:apache:flink:2.2.0:-:*:*:*:*:*:*cpe:2.3:a:apache:flink:2.2.0:rc1:*:*:*:*:*:*cpe:2.3:a:apache:flink:2.2.0:rc2:*:*:*:*:*:*
References 2
- https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x Mailing List, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/05/15/20 Mailing List, Third Party Advisory