Skip to content

Commit 41067d6

Browse files
orcuncactions-user
authored andcommitted
Upgrade mysql connector for CVE-2023-22102 [5.3.z] (#2560)
GitOrigin-RevId: e5fe3c458ceead67e10401450f00270272aa5456
1 parent dccf8dc commit 41067d6

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<includedLicense>CDDL</includedLicense>
4646
<includedLicense>CDDL 1.1</includedLicense>
4747
<includedLicense>Lesser General Public License (LGPL)</includedLicense>
48-
<includedLicense>The GNU General Public License, v2 with FOSS exception</includedLicense>
48+
<includedLicense>The GNU General Public License, v2 with Universal FOSS Exception, v1.0</includedLicense>
4949
<includedLicense>The Go license</includedLicense>
5050
<includedLicense>Elastic License 2.0</includedLicense>
5151
</includedLicenses>

extensions/cdc-mysql/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
<artifactId>license-maven-plugin</artifactId>
7575
<configuration>
7676
<includedLicenses combine.children="append">
77-
<includedLicense>The GNU General Public License, v2 with FOSS exception</includedLicense>
77+
<!-- License for mysql-connector-j -->
78+
<includedLicense>The GNU General Public License, v2 with Universal FOSS Exception, v1.0</includedLicense>
7879
</includedLicenses>
7980
</configuration>
8081
</plugin>
@@ -93,6 +94,20 @@
9394
<groupId>io.debezium</groupId>
9495
<artifactId>debezium-connector-mysql</artifactId>
9596
<version>${debezium.version}</version>
97+
<exclusions>
98+
<exclusion>
99+
<artifactId>mysql-connector-java</artifactId>
100+
<groupId>mysql</groupId>
101+
</exclusion>
102+
</exclusions>
103+
</dependency>
104+
105+
<!-- Debezium version 1.9.8.Final has dependency on old mysql-connector-java. Exclude the old mysql driver and use the new driver.
106+
When debezium is upgraded, we may clean this explicit dependency -->
107+
<dependency>
108+
<groupId>com.mysql</groupId>
109+
<artifactId>mysql-connector-j</artifactId>
110+
<version>9.0.0</version>
96111
</dependency>
97112

98113
<!-- TEST -->

0 commit comments

Comments
 (0)