{"answers":{"affected":"25 open source packages ship an affected version, including org.apache.flink:flink-table-api-java, flink and org.apache.flink:flink-table-planner_2.12. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-35194 in the wild and no public exploit code.","fix":"Upgrade org.apache.flink:flink-table-api-java to a fixed version for your release line: 1.20.4, 2.0.2, 2.1.2 or 2.2.1.","what":"CVE-2026-35194 is a high-severity code injection vulnerability in Apache Flink, published on 15 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35194 and fix it if it is affected.\n\nWhat it is: CVE-2026-35194 is a high-severity code injection vulnerability in Apache Flink, published on 15 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-35194 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.flink:flink-table-api-java (Maven): affected from 1.15.0; fixed in 1.20.4\n- org.apache.flink:flink-table-api-java (Maven): affected from 1.15.0; fixed in 1.20.4\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.0.0; fixed in 2.0.2\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.0.0; fixed in 2.0.2\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.1.0; fixed in 2.1.2\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.1.0; fixed in 2.1.2\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.2.0; fixed in 2.2.1\n- org.apache.flink:flink-table-api-java (Maven): affected from 2.2.0; fixed in 2.2.1\n- flink (Bitnami): affected from 1.15.0; fixed in 1.20.4, 2.0.2, 2.1.1, 2.2.1\n- org.apache.flink:flink-table-planner_2.12 (Maven): affected from 1.15.0; fixed in 1.20.4\n- org.apache.flink:flink-table-planner_2.12 (Maven): affected from 1.15.0; fixed in 1.20.4\n- org.apache.flink:flink-table-planner_2.12 (Maven): affected from 2.0.0; fixed in 2.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-35194/ (Markdown: https://insights.sbomify.com/CVE-2026-35194/index.md)","id":"CVE-2026-35194","markdown":"https://insights.sbomify.com/CVE-2026-35194/index.md","name":"CVE-2026-35194","record":{"aliases":["BIT-flink-2026-35194","ECHO-fb26-ef43-981b","GHSA-2f54-v4hm-fx73","MINI-35w8-758x-rg8w","MINI-8pgq-2h5r-838m","MINI-gp88-p5fc-h9f3","MINI-pfrh-wrhx-c6g7"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Flink","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary code on TaskManagers by injecting malicious expressions into generated Java code via crafted SQL queries.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"flink","vendor":"apache"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-07-02","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-02T06:56:42Z","kind":"github_poc","ref":"https://github.com/DexSemon/CVE-2026-35194","stars":0,"title":"Proof-of-concept exploit and lab environment for CVE-2026-35194"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache Flink: Remote code execution via SQL injection in code generation","id":"CVE-2026-35194","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":25,"n_references":1,"next":{"headline":"Wasmtime has an out-of-bounds write or crash when transcoding component model strings","id":"CVE-2026-35195"},"packages":[{"ecosystem":"Bitnami","fixed":["1.20.4","2.0.2","2.1.1","2.2.1"],"introduced":["1.15.0","2.0.0","2.1.0","2.2.0"],"last_affected":[],"package":"flink","purl":"pkg:bitnami/flink","source":"BIT-flink-2026-35194"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-api-java","purl":"pkg:maven/org.apache.flink/flink-table-api-java","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-planner_2.12","purl":"pkg:maven/org.apache.flink/flink-table-planner_2.12","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["1.20.4"],"introduced":["1.15.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":null,"source":"GHSA-2f54-v4hm-fx73"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.flink:flink-table-runtime","purl":"pkg:maven/org.apache.flink/flink-table-runtime","source":"GHSA-2f54-v4hm-fx73"}],"prev":{"headline":"Potential exposure of private data via missing Vary: Authorization in UpdateCacheMiddleware","id":"CVE-2026-35193"},"products":["Apache Flink"],"published":"2026-05-15","related":[{"cvss_score":9.1,"headline":"Apache Flink Improper Access Control","id":"CVE-2020-17519","kev_date_added":"2024-05-23","published":"2021-01-05"},{"cvss_score":7.5,"headline":"Apache Flink directory traversal attack: remote file writing through the REST API","id":"CVE-2020-17518","kev_date_added":null,"published":"2021-01-05"},{"cvss_score":4.7,"headline":"Command injection in Apache Flink","id":"CVE-2020-1960","kev_date_added":null,"published":"2020-05-14"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-15","vendors":["Apache Software Foundation"]},"summary":"Authenticated users can execute arbitrary code on TaskManagers by injecting malicious expressions into generated Java code via crafted SQL queries.","url":"https://insights.sbomify.com/CVE-2026-35194/"}