Back to CVE records
High 8.1Published May 15, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects Apache Software Foundation Apache Flink and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.1 HIGH (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-94
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
apache
NVD analysis
Analyzed
Record last updated
May 15, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Apache Software Foundation Apache Flink
apache_software_foundation:apache_flink (from the name)
from 1.15.0 before 1.20.4,2.0.2,2.1.2,2.2.1
CNA record
apache flink
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; 2.2.0; 2.2.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.