Apache Flink: Remote code execution via SQL injection in code generation
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache Flink | unaffected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Apache | Flink |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-2f54-v4hm-fx73 | Apache Flink: Remote code execution via SQL injection in code generation |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.381% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:* cpe:2.3:a:apache:flink:2.2.0:-:*:*:*:*:*:* cpe:2.3:a:apache:flink:2.2.0:rc1:*:*:*:*:*:* cpe:2.3:a:apache:flink:2.2.0:rc2:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Apache
Apache flink |
|
| Vendors & Products |
Apache
Apache flink |
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Apache Flink: Remote code execution via SQL injection in code generation | |
| Weaknesses | CWE-94 | |
| References |
|