Apache Flink CDC
CVE-2025-62228
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain logged-in database user access
-
DeliveryCraft malicious database/table identifier
-
ExploitIdentifier interpolated into SQL unsanitized
-
ExecutionInjected SQL executes on data source
-
ImpactUnauthorized read/modification of data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated, logged-in database user whose credentials are used by or accessible to a Flink CDC 3.4.0 pipeline; the attacker must be able to supply a crafted identifier (database name or table name) that Flink CDC passes into a SQL statement without proper sanitization. The decisive limiting factor is this authentication requirement (CVSS PR:H) - the vendor confirms only a logged-in database user can trigger it, which confines the realistic threat to insiders or attackers who have already obtained valid database credentials, rather than anonymous remote users. The flaw is specific to version 3.4.0 and is resolved by upgrading to 3.5.0. |
| Impact | This is a medium-severity, authentication-gated SQL injection (CWE-89) in Apache Flink CDC 3.4.0, and the signals are consistent in pointing to a low-to-moderate real-world priority rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/PR:H/UI:N, score 5.1) requires high privileges - the vendor explicitly states 'only the logged-in database user can trigger the attack,' so the attacker must already hold valid database credentials. EPSS is low at 0.46% (37th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis, all of which align with the high-privilege precondition: exploitation is plausible but neither widespread nor automated. The impact metrics are uniformly Low (VC:L/VI:L/VA:L) with low subsequent-system impact, meaning even successful exploitation yields partial rather than total compromise. The main nuance to verify: AV:N is technically correct because the identifiers traverse the network, but the PR:H requirement effectively narrows the threat to insiders or attackers who have already compromised a database account - this is an insider/privilege-escalation-adjacent risk, not an internet-facing unauthenticated RCE. Prioritize patching to 3.5.0 as routine maintenance, not as a drop-everything incident. |
| Exploit ScenarioDerived | An attacker who already possesses valid database credentials usable by a Flink CDC 3.4.0 pipeline supplies a maliciously crafted identifier - such as a database or table name - that is unsafely interpolated into a SQL statement, allowing injection of attacker-controlled SQL. Because the CVSS vector is AV:N/AC:L/PR:H, exploitation is network-reachable and low-complexity but requires an authenticated (logged-in) database user, limiting it to insiders or attackers with compromised credentials. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
SQL injection in Apache Flink CDC 3.4.0 (CWE-89) allows an authenticated database user to inject arbitrary SQL through maliciously crafted identifiers such as a database or table name that the connector passes into a SQL statement without sanitization. Only a logged-in database user whose credentials are used by, or reachable from, a Flink CDC 3.4.0 pipeline can trigger the flaw (CVSS vector PR:H), which confines realistic exposure to insiders or attackers who already hold valid database credentials. Severity is medium (CVSS 5.1; independently assessed as CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L), with low EPSS probability (0.46%, 37th percentile) and no public exploit identified at time of analysis; upgrading to Flink CDC 3.5.0 resolves the issue.
RemediationAI
Upgrade Apache Flink CDC from 3.4.0 to the vendor-released patched version 3.5.0, as explicitly recommended by Apache in the advisory at https://lists.apache.org/thread/3dn0hc1wbc5sj0jbgdg33gtnwlw7qrl3 (also mirrored at http://www.openwall.com/lists/oss-security/2025/10/09/2); because the fix is applied at the library level, rebuild and redeploy any Flink CDC pipeline that pins 3.4.0 and re-verify that no transitive dependency still resolves to the vulnerable release. If an immediate upgrade is not possible, apply compensating controls with their trade-offs: run the pipeline's database account with least privilege and no DDL or cross-schema rights so injected statements can reach only the minimum required objects (this limits blast radius but does not remove the injection flaw and may break legitimate pipeline tasks); treat database and table names entering pipeline configuration as untrusted input and validate them against a strict allowlist of expected identifiers before the job is submitted (effective only for configuration-driven paths, and it can reject legitimate dynamically-named sources); and restrict who can author or modify pipeline definitions and database credentials so that only trusted operators can supply identifiers, since the attack requires an authenticated database user. Monitor database logs for anomalous SQL generated by Flink CDC jobs as a detection measure, and confirm the upgrade version against the vendor advisory rather than assuming any 3.x release includes the fix.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 5 packages in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Flink CDC is a change-data-capture connector library that streams database changes (from sources such as MySQL, PostgreSQL, Oracle, and MongoDB) into Flink and downstream sinks; its configuration and DDL generation layers build SQL statements that embed source and sink object names. The root cause here is CWE-89 (SQL Injection): identifiers such as database names and table names supplied by pipeline configuration or metadata are concatenated into generated SQL without proper quoting or escaping, so a crafted identifier can break out of its intended context and alter the executed statement. The affected component is explicitly scoped by CPE to cpe:2.3:a:apache:flink_cdc:3.4.0, i.e. only release 3.4.0. Impact is bounded (low confidentiality, integrity, and availability per the CVSS 4.0 vector and the C scope in the independent assessment) because the injection executes under the privileges of the pipeline's database account, and the prerequisite authenticated database user (PR:H) means the attacker must already possess valid credentials used by or reachable from the pipeline. Fixing this class of bug requires parameterization or strict quoting of identifiers rather than string concatenation.
Know when Flink Cdc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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/R:U/V:C/RE:L/U:Amber
Network-reachable injection but requires a logged-in database user (PR:H), low complexity; injection crosses into the database component so S:C, with partial C/I/A impact.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
DescriptionCVE.org
Apache Flink CDC version 3.4.0 was 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, we recommend users update Flink CDC version to 3.5.0 which address this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB