cve.bz

CVE-2026-35194 apache flink: Code Injection

8.1 highEPSS 0.4%Fix available

High (8.1) in apache flink. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.flink:flink-table-planner_2.12 1.20.4, 2.0.2, 2.1.2.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • org.apache.flink:flink-table-planner_2.12 (Maven): fixed in 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • org.apache.flink:flink-table-api-java (Maven): fixed in 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • org.apache.flink:flink-table-runtime (Maven): fixed in 1.20.4, 2.0.2, 2.1.2, 2.2.1
  • Vendor advisory: https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x

Ask an AI about this CVE

Show the promptExplain CVE-2026-35194 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-35194?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-35194?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-35194 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-35194

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-35194](https://cve.bz/cve/badge/CVE-2026-35194.svg)](https://cve.bz/cve/CVE-2026-35194)

HTML:

<a href="https://cve.bz/cve/CVE-2026-35194"><img src="https://cve.bz/cve/badge/CVE-2026-35194.svg" alt="CVE-2026-35194"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Flinkfrom 1.15.0 before 1.20.4,2.0.2,2.1.2,2.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-planner_2.12>=1.15.0 <1.20.41.20.4
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-planner_2.12>=2.0.0 <2.0.22.0.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-planner_2.12>=2.1.0 <2.1.22.1.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-planner_2.12>=2.2.0 <2.2.12.2.1
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-api-java>=1.15.0 <1.20.41.20.4
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-api-java>=2.0.0 <2.0.22.0.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-api-java>=2.1.0 <2.1.22.1.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-api-java>=2.2.0 <2.2.12.2.1
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-runtime>=1.15.0 <1.20.41.20.4
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-runtime>=2.0.0 <2.0.22.0.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-runtime>=2.1.0 <2.1.22.1.2
GHSA-2f54-v4hm-fx73Mavenorg.apache.flink:flink-table-runtime>=2.2.0 <2.2.12.2.1

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • DexSemon/CVE-2026-35194 Harbor Check: matches CVE 0 stars, Python, created
    Proof-of-concept exploit and lab environment for CVE-2026-35194

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON