GHSA-2f54-v4hm-fx73

Suggest an improvement
Source
https://github.com/advisories/GHSA-2f54-v4hm-fx73
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2f54-v4hm-fx73
Aliases
Downstream
Published
2026-05-15T18:30:34Z
Modified
2026-05-22T16:11:02.271533008Z
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
{
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2026-05-15T16:16:14Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "github_reviewed_at": "2026-05-22T15:49:47Z"
}
References

Affected packages

Maven
org.apache.flink:flink-table-planner_2.12

Package

Name
org.apache.flink:flink-table-planner_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-planner_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.15.0
Fixed
1.20.4

Affected versions

1.*
1.15.0
1.15.1
1.15.2
1.15.3
1.15.4
1.16.0
1.16.1
1.16.2
1.16.3
1.17.0
1.17.1
1.17.2
1.18.0
1.18.1
1.19.0
1.19.1
1.19.2
1.19.3
1.20.0
1.20.1
1.20.2
1.20.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-planner_2.12

Package

Name
org.apache.flink:flink-table-planner_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-planner_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.2

Affected versions

2.*
2.0.0
2.0-preview1
2.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-planner_2.12

Package

Name
org.apache.flink:flink-table-planner_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-planner_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.1.0
Fixed
2.1.2

Affected versions

2.*
2.1.0
2.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-planner_2.12

Package

Name
org.apache.flink:flink-table-planner_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-planner_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.2.0
Fixed
2.2.1

Affected versions

2.*
2.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-api-java

Package

Name
org.apache.flink:flink-table-api-java
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-api-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.15.0
Fixed
1.20.4

Affected versions

1.*
1.15.0
1.15.1
1.15.2
1.15.3
1.15.4
1.16.0
1.16.1
1.16.2
1.16.3
1.17.0
1.17.1
1.17.2
1.18.0
1.18.1
1.19.0
1.19.1
1.19.2
1.19.3
1.20.0
1.20.1
1.20.2
1.20.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-api-java

Package

Name
org.apache.flink:flink-table-api-java
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-api-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.2

Affected versions

2.*
2.0.0
2.0-preview1
2.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-api-java

Package

Name
org.apache.flink:flink-table-api-java
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-api-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.1.0
Fixed
2.1.2

Affected versions

2.*
2.1.0
2.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-api-java

Package

Name
org.apache.flink:flink-table-api-java
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-api-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.2.0
Fixed
2.2.1

Affected versions

2.*
2.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-runtime

Package

Name
org.apache.flink:flink-table-runtime
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-runtime

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.15.0
Fixed
1.20.4

Affected versions

1.*
1.15.0
1.15.1
1.15.2
1.15.3
1.15.4
1.16.0
1.16.1
1.16.2
1.16.3
1.17.0
1.17.1
1.17.2
1.18.0
1.18.1
1.19.0
1.19.1
1.19.2
1.19.3
1.20.0
1.20.1
1.20.2
1.20.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-runtime

Package

Name
org.apache.flink:flink-table-runtime
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-runtime

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.2

Affected versions

2.*
2.0.0
2.0-preview1
2.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-runtime

Package

Name
org.apache.flink:flink-table-runtime
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-runtime

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.1.0
Fixed
2.1.2

Affected versions

2.*
2.1.0
2.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"
org.apache.flink:flink-table-runtime

Package

Name
org.apache.flink:flink-table-runtime
View open source insights on deps.dev
Purl
pkg:maven/org.apache.flink/flink-table-runtime

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.2.0
Fixed
2.2.1

Affected versions

2.*
2.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f54-v4hm-fx73/GHSA-2f54-v4hm-fx73.json"