Apache Software Foundation Apache Flink
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.15.0, < 1.20.4,2.0.2,2.1.2,2.2.1
Fixed in 1.20.4,2.0.2,2.1.2,2.2.1
Mitigation
Upgrade Apache Flink to 1.20.4,2.0.2,2.1.2,2.2.1 or later.
References
- Vendor advisory lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0l…
Timeline
Days relative to CVE publicationFirst public PoC 48 days after publication; not in CISA KEV. First PoC: DexSemon/CVE-2026-35194 (created 2 Jul 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| DexSemon/CVE-2026-35194 | 2 Jul 2026 +48 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoDELETE /v1/sessions/{var}
- Ports
- 8081, 8083
- Seen in
- 1 repo: DexSemon/CVE-2026-35194
- Evidence
- DexSemon/CVE-2026-35194/exploit.py:250
GET /v1/info
- Ports
- 8081, 8083
- Seen in
- 1 repo: DexSemon/CVE-2026-35194
- Evidence
- DexSemon/CVE-2026-35194/README.md:29 DexSemon/CVE-2026-35194/exploit.py:50
POST /v1/sessions
- Body markers
"properties"inapplication/json- Ports
- 8081, 8083
- Seen in
- 1 repo: DexSemon/CVE-2026-35194
- Evidence
- DexSemon/CVE-2026-35194/exploit.py:92
POST /v1/sessions/{var}/statements
- Body markers
"statement":"""inapplication/json- Ports
- 8081, 8083
- Seen in
- 1 repo: DexSemon/CVE-2026-35194
- Evidence
- DexSemon/CVE-2026-35194/exploit.py:110
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/v1/sessions/[^/?#]*(?:[?#].*)?$
(?i)^/v1/info(?:[?#].*)?$
(?i)^/v1/sessions(?:[?#].*)?$
(?i)^/v1/sessions/[^/?#]*/statements(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8081,8083] (msg:"GG PoC-Monitor CVE-2026-35194 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/v1/sessions/"; reference:url,poc.griffinguard.io/cve/CVE-2026-35194; classtype:web-application-attack; sid:9704512; rev:1;)
alert http any any -> $HOME_NET [8081,8083] (msg:"GG PoC-Monitor CVE-2026-35194 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/v1/info"; reference:url,poc.griffinguard.io/cve/CVE-2026-35194; classtype:web-application-attack; sid:9840348; rev:1;)
alert http any any -> $HOME_NET [8081,8083] (msg:"GG PoC-Monitor CVE-2026-35194 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/sessions"; http.request_body; content:"|22|properties|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-35194; classtype:web-application-attack; sid:9414317; rev:1;)
alert http any any -> $HOME_NET [8081,8083] (msg:"GG PoC-Monitor CVE-2026-35194 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/sessions/"; http.uri; content:"/statements"; http.request_body; content:"|22|statement|22|:|22||22||22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-35194; classtype:web-application-attack; sid:9101702; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2026-35194)
id: gg-pocmon-cve-2026-35194-9704512
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35194. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35194
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/v1/sessions/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35194
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2026-35194)
id: gg-pocmon-cve-2026-35194-9840348
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35194. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35194
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/v1/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35194
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2026-35194)
id: gg-pocmon-cve-2026-35194-9414317
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35194. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35194
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/v1/sessions'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35194
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2026-35194)
id: gg-pocmon-cve-2026-35194-9101702
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35194. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35194
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/v1/sessions/'
- '/statements'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35194