Skip to content
Fencer Vulns
high 8.1

CVE-2026-35194 json

Apache Flink: Remote code execution via SQL injection in code generation

published 2026-05-15 5 mo ago modified 2026-10-26 14 d ago also BIT-flink-2026-35194 , EUVD-2026-30550 , GHSA-2f54-v4hm-fx73

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 32%
public exploits
0
none known

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.

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.

Patch / fix

  • maven org.apache.flink:flink-table-planner_2.12 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • maven org.apache.flink:flink-table-api-java 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • maven org.apache.flink:flink-table-runtime 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • bitnami flink 1.20.4, 2.0.2, 2.1.1, 2.2.1
  • Apache Software Foundation Apache Flink 1.20.4,2.0.2,2.1.2,2.2.1

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
5 mo ago

Exploit prediction

0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
OSV 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.apache.flink:flink-table-planner_2.12
>=1.15.0, <1.20.4
>=2.0.0, <2.0.2
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
1.20.4
2.0.2
2.1.2
2.2.1
maven org.apache.flink:flink-table-api-java
>=1.15.0, <1.20.4
>=2.0.0, <2.0.2
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
1.20.4
2.0.2
2.1.2
2.2.1
maven org.apache.flink:flink-table-runtime
>=1.15.0, <1.20.4
>=2.0.0, <2.0.2
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
1.20.4
2.0.2
2.1.2
2.2.1
bitnami flink
>=1.15.0, <1.20.4
>=2.0.0, <2.0.2
>=2.1.0, <2.1.1
>=2.2.0, <2.2.1
1.20.4
2.0.2
2.1.1
2.2.1

Affected products

  • Apache Software Foundation Apache Flink

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.