Apache Flink CDC, SQL Injection, CVE-2025-XXXXX (Moderate)

Listen to this Post

How the mentioned CVE works:

This CVE exploits a SQL injection vulnerability within the Change Data Capture (CDC) functionality of Apache Flink. The flaw exists in the code responsible for handling database and table identifiers when configuring CDC sources. User-supplied input for identifiers, such as database or table names, is not properly sanitized before being incorporated into SQL queries. An attacker can craft a malicious database or table name containing special SQL meta-characters and commands. When Flink CDC processes this crafted identifier, the malicious payload is injected into the SQL statement executed against the source database. This allows the attacker to execute arbitrary SQL commands on the underlying database, with the privileges of the Flink application’s database user, potentially leading to data leakage, modification, or deletion.
Platform: Apache Flink CDC
Version: 3.0.0 – 3.4.x

Vulnerability : SQL Injection

Severity: Moderate

date: 2025-10-09

Prediction: Patch available

What Undercode Say:

`SELECT FROM ‘malicious_db’.’injected_sql–‘;`

`jdbc:mysql://host/db?user=flink_user&password=xxx`

`conn.prepareStatement(unsanitizedIdentifier);`

How Exploit:

Craft malicious table name.

Configure Flink CDC source.

Trigger pipeline execution.

Protection from this CVE

Upgrade to version 3.5.0.

Implement input sanitization.

Use principle of least privilege.

Impact:

Arbitrary SQL execution.

Data confidentiality loss.

Data integrity compromise.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top