{"id":"CVE-2026-35194","aliases":["CVE-2026-35194","GHSA-2f54-v4hm-fx73","BIT-FLINK-2026-35194"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Flink: Remote code execution via SQL injection in code generation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Inyección de código en la generación de código SQL en Apache Flink 1.15.0 hasta 1.20.x y 2.0.0 hasta 2.x permite a usuarios autenticados con privilegios de envío de consultas ejecutar código arbitrario en los TaskManagers a través de consultas SQL maliciosamente elaboradas. La vulnerabilidad afecta a las funciones JSON (1.15.0+) y a las expresiones LIKE con cláusulas ESCAPE (1.17.0+). Las cadenas controladas por el usuario se interpolan en el código Java generado sin el escape adecuado, permitiendo a los atacantes salir de los literales de cadena e inyectar expresiones arbitrarias.\n\nSe recomienda a los usuarios actualizar a la versión 1.20.4, 2.0.2, 2.1.2 o 2.2.1, que corrige este problema.","source":"nvd"}],"published":"2026-05-15T15:27:27.346Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"1.15.0","fixed":"1.20.4,2.0.2,2.1.2,2.2.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Flink","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.15.0","status":"affected","fixed":"1.20.4"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.15.0","status":"affected","fixed":"1.20.4"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.15.0","status":"affected","fixed":"1.20.4"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"Maven","package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.15.0","fixed":"1.20.4"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.2"},{"status":"affected","introduced":"2.1.0","fixed":"2.1.2"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"}],"vendor":"apache","product":"flink","cpe":"cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.20.4"},{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.2"},{"type":"semver","introduced":"2.1.0","status":"affected","fixed":"2.1.1"},{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"Bitnami","package":"flink","purl":"pkg:bitnami/flink","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x","tags":["advisory","mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/15/20","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35194","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/flink/commit/64007b131d689158af90ca1c1b71b018129a85c5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/flink/commit/8db22cf8fbc4c785f6ffd41c2fd3e8b64a9688cd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/flink","tags":["package"],"sources":["ghsa"]}],"credits":["Yaswant Katakam, Confluent InfoSec"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-15T18:27:22.779Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35194","url":"https://www.cve.org/CVERecord?id=CVE-2026-35194","licence":"CVE Terms of Use","modified":"2026-05-15T21:23:25.726Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2f54-v4hm-fx73","url":"https://github.com/advisories/GHSA-2f54-v4hm-fx73","licence":"CC-BY-4.0","modified":"2026-05-22T16:11:02.271Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35194","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35194","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-FLINK-2026-35194","url":"https://osv.dev/vulnerability/BIT-FLINK-2026-35194","licence":"Apache-2.0","modified":"2026-09-08T08:47:17.558Z"}],"updatedAt":"2026-11-25T22:59:21.816Z","epss":{"score":0.00381,"percentile":0.34197,"date":"2026-12-01T12:00:22.000Z"}}