CVE-2026-35194

Source
https://cve.org/CVERecord?id=CVE-2026-35194
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35194.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-35194
Aliases
Downstream
Published
2026-05-15T15:27:27.346Z
Modified
2026-07-08T08:02:04.419741724Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Apache Flink: Remote code execution via SQL injection in code generation
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35194.json",
    "cna_assigner": "apache",
    "cwe_ids": [
        "CWE-94"
    ],
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "1.15.0"
                },
                {
                    "fixed": "1.20.4,2.0.2,2.1.2,2.2.1"
                }
            ],
            "source": "AFFECTED_FIELD"
        },
        {
            "extracted_events": [
                {
                    "introduced": "1.15.0"
                },
                {
                    "fixed": "1.20.x"
                },
                {
                    "introduced": "2.0.0"
                },
                {
                    "fixed": "2.x"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/apache/flink

Affected ranges

Type
GIT
Repo
https://github.com/apache/flink
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:apache:flink:2.2.0:-:*:*:*:*:*:*",
        "cpe:2.3:a:apache:flink:2.2.0:rc2:*:*:*:*:*:*",
        "cpe:2.3:a:apache:flink:2.2.0:rc1:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "2.2.0-NA"
        },
        {
            "last_affected": "2.2.0-NA"
        },
        {
            "introduced": "2.2.0-rc2"
        },
        {
            "last_affected": "2.2.0-rc2"
        },
        {
            "introduced": "2.2.0-rc1"
        },
        {
            "last_affected": "2.2.0-rc1"
        }
    ],
    "source": "CPE_STRING"
}

Affected versions

2.*
2.2.0-NA
2.2.0-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35194.json"