Skip to main content

CVE-2026-35194 — Vulnerability in flink-table-planner_2.12

HIGH

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

Published May 15, 2026Updated May 22, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.66%). Schedule for your next planned update.

Does your project use an affected org.apache.flink:flink-table-planner_2.12 version?

Paste your pom.xml to check it for CVE-2026-35194 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

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.

Advisory Timeline

  • First published May 15, 2026 (195 days ago).
  • Last revised May 22, 2026 — 7 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.flink:flink-table-planner_2.12 to 1.20.4 or later
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-planner_2.12 -->
Maven
Update org.apache.flink:flink-table-api-java to 2.2.1 or later
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-api-java -->
Maven
Update org.apache.flink:flink-table-runtime to 2.0.2 or later
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-runtime -->
Maven
Update org.apache.flink:flink-table-planner_2.12 to 2.1.2 or later
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-planner_2.12 -->
Maven
Update org.apache.flink:flink-table-planner_2.12 to 2.0.2 or later
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-planner_2.12 -->
Maven
Update org.apache.flink:flink-table-runtime to 1.20.4 or later
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-runtime -->
Maven
Update org.apache.flink:flink-table-planner_2.12 to 2.2.1 or later
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-planner_2.12 -->
Maven
Update org.apache.flink:flink-table-runtime to 2.2.1 or later
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.flink:flink-table-runtime -->
Maven
Update org.apache.flink:flink-table-api-java to 2.0.2 or later
<!-- Update pom.xml dependency version to 2.0.2 for org.apache.flink:flink-table-api-java -->
Maven
Update org.apache.flink:flink-table-runtime to 2.1.2 or later
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-runtime -->
Maven
Update org.apache.flink:flink-table-api-java to 1.20.4 or later
<!-- Update pom.xml dependency version to 1.20.4 for org.apache.flink:flink-table-api-java -->
Maven
Update org.apache.flink:flink-table-api-java to 2.1.2 or later
<!-- Update pom.xml dependency version to 2.1.2 for org.apache.flink:flink-table-api-java -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (12)

Affects 1 ecosystem: Maven (3).

PackageFixed In
org.apache.flink:flink-table-planner_2.12 Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more)1.20.4
org.apache.flink:flink-table-api-java Maven · Affected: 2.2.02.2.1
org.apache.flink:flink-table-runtime Maven · Affected: 2.0-preview1, 2.0.0, 2.0.12.0.2
org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.1.0, 2.1.12.1.2
org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.0-preview1, 2.0.0, 2.0.12.0.2
org.apache.flink:flink-table-runtime Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more)1.20.4
org.apache.flink:flink-table-planner_2.12 Maven · Affected: 2.2.02.2.1
org.apache.flink:flink-table-runtime Maven · Affected: 2.2.02.2.1
org.apache.flink:flink-table-api-java Maven · Affected: 2.0-preview1, 2.0.0, 2.0.12.0.2
org.apache.flink:flink-table-runtime Maven · Affected: 2.1.0, 2.1.12.1.2
org.apache.flink:flink-table-api-java Maven · Affected: 1.15.0, 1.15.1, 1.15.2, 1.15.3 (+18 more)1.20.4
org.apache.flink:flink-table-api-java Maven · Affected: 2.1.0, 2.1.12.1.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-35194?
Apache Flink: Remote code execution via SQL injection in code generation. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-35194?
CVE-2026-35194 affects org.apache.flink:flink-table-planner_2.12, org.apache.flink:flink-table-api-java and org.apache.flink:flink-table-runtime. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-35194 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.66%
EPSS percentile: 46.2

This is a below-median EPSS score — only 46.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-2f54-v4hm-fx73
BIT-flink-2026-35194

Related CVEs

  • CVE-2026-61689
    HIGH

    XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

  • CVE-2026-107725
    HIGH

    Hazelcast has an authorization bypass in IMap Predicates API

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml