Arbitrary Code Injection Affecting org.apache.flink:flink-table-planner_2.12 package, versions [1.15.0,1.20.4)[2.0.0,2.0.2)[2.1.0,2.1.2)[2.2.0,2.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEFLINK-16799799
  • published22 May 2026
  • disclosed15 May 2026
  • creditYaswant Katakam

Introduced: 15 May 2026

CVE-2026-35194  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.apache.flink:flink-table-planner_2.12 to version 1.20.4, 2.0.2, 2.1.2, 2.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the SQL code generation process. An attacker can execute arbitrary code on TaskManagers by submitting specially crafted SQL queries that exploit improper escaping of user-controlled strings in generated Java code.

CVSS Base Scores

version 4.0
version 3.1