{"id":"CVE-2026-35194","published":"2026-05-15T15:27:27Z","modified":"2026-05-15T21:23:25Z","title":"Apache Flink: Remote code execution via SQL injection in code generation","vendor":"Apache","product":"Apache Flink","tier":"tail","description":{"text":"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.\n\nUsers are recommended to upgrade to either version 1.20.4, 2.0.2, 2.1.2 or 2.2.1, which fixes this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00656,"percentile":0.46187,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/15/20","tags":[]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":9.24},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-02","earliestUrl":"https://github.com/DexSemon/CVE-2026-35194","repos":[{"name":"DexSemon/CVE-2026-35194","url":"https://github.com/DexSemon/CVE-2026-35194","stars":0,"created":"2026-07-02"}]},"first":{"date":"2026-07-02","source":"PoC-in-GitHub","url":"https://github.com/DexSemon/CVE-2026-35194"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Flink","versions":[">= 1.15.0, < 1.20.4,2.0.2,2.1.2,2.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-15T18:27:22.779317Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.flink:flink-table-planner_2.12","vulnerableRanges":[">=1.15.0, <1.20.4",">=2.0.0, <2.0.2",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1"],"patched":["1.20.4","2.0.2","2.1.2","2.2.1"],"from":["GHSA-2f54-v4hm-fx73"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.flink:flink-table-api-java","vulnerableRanges":[">=1.15.0, <1.20.4",">=2.0.0, <2.0.2",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1"],"patched":["1.20.4","2.0.2","2.1.2","2.2.1"],"from":["GHSA-2f54-v4hm-fx73"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.flink:flink-table-runtime","vulnerableRanges":[">=1.15.0, <1.20.4",">=2.0.0, <2.0.2",">=2.1.0, <2.1.2",">=2.2.0, <2.2.1"],"patched":["1.20.4","2.0.2","2.1.2","2.2.1"],"from":["GHSA-2f54-v4hm-fx73"],"provenance":"source"}],"summary":{"text":"Apache Flink, versions 1.15.0 through 1.20.x and 2.0.0 through 2.x, has a code injection flaw in its SQL code generation, where user-controlled strings in JSON functions and LIKE expressions with ESCAPE clauses are interpolated into generated Java code without proper escaping. An authenticated user with query submission privileges, who can reach the Flink service over the network, can submit a crafted SQL query to break out of string literals and execute arbitrary code on TaskManagers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:48Z"},"euvd":{"id":"EUVD-2026-30550","exploited":false,"provenance":"source"}}