Skip to main content

Apache Flink CDC CVE-2025-62228

MEDIUM
SQL Injection (CWE-89)
2025-10-09 security@apache.org
5.1
CVSS 4.0 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain logged-in database user access
  2. Delivery
    Craft malicious database/table identifier
  3. Exploit
    Identifier interpolated into SQL unsanitized
  4. Execution
    Injected SQL executes on data source
  5. Impact
    Unauthorized 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.apache.flink:flink-cdc-pipeline-connectors fix: 3.5.0
maven org.apache.flink:flink-connector-db2-cdc fix: 3.5.0
maven org.apache.flink:flink-connector-mysql-cdc fix: 3.5.0
maven org.apache.flink:flink-connector-oracle-cdc fix: 3.5.0
maven org.apache.flink:flink-connector-sqlserver-cdc fix: 3.5.0

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

Vendor (apache) PRIMARY 5.1 MEDIUM
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
vuln.today AI 6.6 MEDIUM

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

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

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Medium
popular open-source CDC connector within Flink stream-processing ecosystem, not universal
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:apache:flink_cdc:3.4.0:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy