{"cve":"CVE-2026-35194","nvd":{"published":"2026-05-15T16:16:14.340","modified":"2026-10-26T14:10:00.130","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-94"],"references":["https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x","http://www.openwall.com/lists/oss-security/2026/05/15/20"],"products":["apache:flink"],"source":"nvd","synced_at":"2026-10-26T14:27:29.784594657+00:00"},"epss":{"cve":"CVE-2026-35194","score":0.00381,"percentile":0.31821,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-2f54-v4hm-fx73","url":"https://osv.dev/vulnerability/GHSA-2f54-v4hm-fx73","summary":"Apache Flink: Remote code execution via SQL injection in code generation","modified":"2026-05-22T16:11:02.271533008Z","packages":[{"ecosystem":"Maven","name":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","ranges":[">=1.15.0 <1.20.4"],"fixed":["1.20.4"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","ranges":[">=2.0.0 <2.0.2"],"fixed":["2.0.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","ranges":[">=2.1.0 <2.1.2"],"fixed":["2.1.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","ranges":[">=2.2.0 <2.2.1"],"fixed":["2.2.1"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","ranges":[">=1.15.0 <1.20.4"],"fixed":["1.20.4"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","ranges":[">=2.0.0 <2.0.2"],"fixed":["2.0.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","ranges":[">=2.1.0 <2.1.2"],"fixed":["2.1.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","ranges":[">=2.2.0 <2.2.1"],"fixed":["2.2.1"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","ranges":[">=1.15.0 <1.20.4"],"fixed":["1.20.4"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","ranges":[">=2.0.0 <2.0.2"],"fixed":["2.0.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","ranges":[">=2.1.0 <2.1.2"],"fixed":["2.1.2"]},{"ecosystem":"Maven","name":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","ranges":[">=2.2.0 <2.2.1"],"fixed":["2.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}