CVE-2025-62228
Java vulnerability analysis and mitigation

Overview

Apache Flink CDC version 3.0.0 to before 3.5.0 was vulnerable to a SQL injection attack via maliciously crafted identifiers such as database names or table names. The vulnerability was assigned CVE-2025-62228 and was disclosed on October 9, 2025 (NVD, Miggo).

Technical details

The vulnerability is classified as CWE-89 (SQL Injection) with a CVSS 4.0 Base Score of 5.1 (Medium). The issue stems from improper construction of SQL queries using un-sanitized user-provided identifiers in database and table names. Multiple methods in the org.apache.flink.cdc.connectors.oceanbase.catalog.OceanBaseMySQLCatalog class were found to be vulnerable, using String.format to build SQL queries while embedding raw database and table names into the query string (Miggo).

Impact

Although the vulnerability requires an authenticated database user to exploit, it could allow attackers to manipulate SQL queries' logic or inject entirely new SQL commands through specially crafted identifiers. The vulnerability affects multiple Flink CDC connectors including Oracle, DB2, SQL Server, and MySQL connectors (Miggo).

Mitigation and workarounds

Users are recommended to update to Flink CDC version 3.5.0 which addresses this issue by implementing proper identifier escaping and using PreparedStatement with parameter markers for DQL statements (NVD, Miggo).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • opensearch-2
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management