Apache Flink CDC is vulnerable to SQL Injection through maliciously crafted identifiers
Apache Flink CDC version 3.0.0 to before 3.5.0 are vulnerable to a SQL injection via maliciously crafted identifiers eg. crafted database name or crafted table name. Even through only the logged-in database user can trigger the attack, users are recommended to update Flink CDC version to 3.5.0 which address this issue.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.flink:flink-cdc-pipeline-connectors | >= 3.0.0, < 3.5.0 | 3.5.0 |
| Java / Kotlin (Maven) | org.apache.flink:flink-connector-db2-cdc | >= 3.0.0, < 3.5.0 | 3.5.0 |
| Java / Kotlin (Maven) | org.apache.flink:flink-connector-mysql-cdc | >= 3.0.0, < 3.5.0 | 3.5.0 |
| Java / Kotlin (Maven) | org.apache.flink:flink-connector-oracle-cdc | >= 3.0.0, < 3.5.0 | 3.5.0 |
| Java / Kotlin (Maven) | org.apache.flink:flink-connector-sqlserver-cdc | >= 3.0.0, < 3.5.0 | 3.5.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-62228
- https://github.com/apache/flink-cdc/pull/4123
- https://github.com/apache/flink-cdc/commit/d5766187a9a4b191820e10238d4594ae665cdb89
- https://github.com/apache/flink-cdc
- https://lists.apache.org/thread/3dn0hc1wbc5sj0jbgdg33gtnwlw7qrl3
- http://www.openwall.com/lists/oss-security/2025/10/09/2
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L- Weakness (CWE)
CWE-89- Platform
- Java / Kotlin (Maven)
- Package
org.apache.flink:flink-cdc-pipeline-connectors, org.apache.flink:flink-connector-db2-cdc, org.apache.flink:flink-connector-mysql-cdc- Disclosed
- 09.10.2025
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-wqm3-w3p6-xjgm - CC BY 4.0
Vulnerability history: org.apache.flink:flink-connector-db2-cdc
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.