CVE-2026-35194: CWE-94 Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Flink
CVE-2026-35194 is a code injection vulnerability in Apache Flink versions 1. 15. 0 through 1. 20. x and 2. 0. 0 through 2. x. It allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers by submitting malicious SQL queries. The issue arises from improper escaping of user-controlled strings in generated Java code, specifically affecting JSON functions and LIKE expressions with ESCAPE clauses.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-35194) in Apache Flink involves improper control of code generation (CWE-94) during SQL code generation. Authenticated users who can submit queries can craft SQL statements that inject arbitrary Java code executed on TaskManagers. The flaw is due to user input being interpolated into generated Java code without proper escaping, allowing attackers to break out of string literals and inject malicious expressions. Affected versions include 1.15.0 through 1.20.x and 2.0.0 through 2.x, with specific impact on JSON functions (from 1.15.0) and LIKE expressions with ESCAPE clauses (from 1.17.0).
Potential Impact
Successful exploitation allows authenticated users with query submission privileges to execute arbitrary code on Apache Flink TaskManagers. This can lead to unauthorized code execution within the Flink environment, potentially compromising the integrity and availability of the system processing data streams.
Mitigation Recommendations
Users should upgrade Apache Flink to one of the fixed versions: 1.20.4, 2.0.2, 2.1.2, or 2.2.1. These versions contain the official fixes for this vulnerability. No other mitigation or temporary workaround is indicated in the provided data. Patch status is confirmed by the vendor advisory recommending these upgrades.
CVE-2026-35194: CWE-94 Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Flink
Description
CVE-2026-35194 is a code injection vulnerability in Apache Flink versions 1. 15. 0 through 1. 20. x and 2. 0. 0 through 2. x. It allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers by submitting malicious SQL queries. The issue arises from improper escaping of user-controlled strings in generated Java code, specifically affecting JSON functions and LIKE expressions with ESCAPE clauses.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-35194) in Apache Flink involves improper control of code generation (CWE-94) during SQL code generation. Authenticated users who can submit queries can craft SQL statements that inject arbitrary Java code executed on TaskManagers. The flaw is due to user input being interpolated into generated Java code without proper escaping, allowing attackers to break out of string literals and inject malicious expressions. Affected versions include 1.15.0 through 1.20.x and 2.0.0 through 2.x, with specific impact on JSON functions (from 1.15.0) and LIKE expressions with ESCAPE clauses (from 1.17.0).
Potential Impact
Successful exploitation allows authenticated users with query submission privileges to execute arbitrary code on Apache Flink TaskManagers. This can lead to unauthorized code execution within the Flink environment, potentially compromising the integrity and availability of the system processing data streams.
Mitigation Recommendations
Users should upgrade Apache Flink to one of the fixed versions: 1.20.4, 2.0.2, 2.1.2, or 2.2.1. These versions contain the official fixes for this vulnerability. No other mitigation or temporary workaround is indicated in the provided data. Patch status is confirmed by the vendor advisory recommending these upgrades.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-01T18:39:08.929Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a074490ec166c07b0660923
Added to database: 5/15/2026, 4:06:40 PM
Last enriched: 5/15/2026, 4:21:51 PM
Last updated: 5/15/2026, 5:07:19 PM
Views: 42
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.