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

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.

Published: 2026-05-15 Last update: 2026-05-18 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-35194 is rated Low Risk (38.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.05%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-35194

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-21 0.05% 0.05% +0.00%
2 2026-05-16 0.05%

Full EPSS history (2 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-35194

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 5.2 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2026-35194

GitHub Security Advisory for CVE-2026-35194

GHSA-2f54-v4hm-fx73 · Severity: high · Ecosystem: maven — Apache Flink: Remote code execution via SQL injection in code generation

Affected software / configurations for CVE-2026-35194

Vendor Product Version Raw CPE
apache flink >= 1.15.0, < 1.20.4 cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*
apache flink >= 2.0.0, < 2.0.2 cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*
apache flink >= 2.1.0, < 2.1.2 cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*
apache flink 2.2.0 cpe:2.3:a:apache:flink:2.2.0:-:*:*:*:*:*:*
apache flink 2.2.0 cpe:2.3:a:apache:flink:2.2.0:rc1:*:*:*:*:*:*
apache flink 2.2.0 cpe:2.3:a:apache:flink:2.2.0:rc2:*:*:*:*:*:*

References for CVE-2026-35194

cvelogic Threat Intelligence