# CVE-2026-35194: Apache Flink: Remote code execution via SQL injection in code generation

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-05-15T15:27:27.346Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-2f54-v4hm-fx73, BIT-FLINK-2026-35194
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Flink: from 1.15.0 before 1.20.4,2.0.2,2.1.2,2.2.1
- org.apache.flink:flink-table-planner_2.12 (Maven): from 1.15.0 before 1.20.4; from 2.0.0 before 2.0.2; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1
- org.apache.flink:flink-table-api-java (Maven): from 1.15.0 before 1.20.4; from 2.0.0 before 2.0.2; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1
- org.apache.flink:flink-table-runtime (Maven): from 1.15.0 before 1.20.4; from 2.0.0 before 2.0.2; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1
- apache flink: from 1.15.0 before 1.20.4; from 2.0.0 before 2.0.2; from 2.1.0 before 2.1.2; 2.2.0
- flink (Bitnami): from 1.15.0 before 1.20.4; from 2.0.0 before 2.0.2; from 2.1.0 before 2.1.1; from 2.2.0 before 2.2.1

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x> (advisory, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/05/15/20> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35194> (advisory, web)
- <https://github.com/apache/flink/commit/64007b131d689158af90ca1c1b71b018129a85c5> (web)
- <https://github.com/apache/flink/commit/8db22cf8fbc4c785f6ffd41c2fd3e8b64a9688cd> (web)
- <https://github.com/apache/flink> (package)

## Sources

- CVE List: [CVE-2026-35194](https://www.cve.org/CVERecord?id=CVE-2026-35194), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-2f54-v4hm-fx73](https://github.com/advisories/GHSA-2f54-v4hm-fx73), CC-BY-4.0, modified 2026-05-22
- NVD: [CVE-2026-35194](https://nvd.nist.gov/vuln/detail/CVE-2026-35194), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-FLINK-2026-35194](https://osv.dev/vulnerability/BIT-FLINK-2026-35194), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-35194 · Whole record: https://cve.day/CVE-2026-35194.json · Rebuilt by cve.day 2026-11-25T22:59:21.816Z
