Skip to content

Commit 8cc055c

Browse files
authored
Pin protobuf-java to 3.25.9 (#24)
Connector/J 8.4.0 resolves protobuf-java 3.25.1, which has CVE-2024-7254. Pin the patched 3.25 release through dependencyManagement; same major, so the driver is unaffected. Closes #23
1 parent b14dc09 commit 8cc055c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,22 @@
1717
<mysql.version>8.4.0</mysql.version>
1818
<slf4j.version>1.7.12</slf4j.version>
1919
<tomcat-jdbc.version>8.0.28</tomcat-jdbc.version>
20+
<protobuf.version>3.25.9</protobuf.version>
2021
</properties>
2122

23+
<!-- Connector/J 8.4.0 (the last 8.x) pulls protobuf-java 3.25.1, which has
24+
CVE-2024-7254. Pin the patched 3.25 line; same major, so the driver
25+
is unaffected. -->
26+
<dependencyManagement>
27+
<dependencies>
28+
<dependency>
29+
<groupId>com.google.protobuf</groupId>
30+
<artifactId>protobuf-java</artifactId>
31+
<version>${protobuf.version}</version>
32+
</dependency>
33+
</dependencies>
34+
</dependencyManagement>
35+
2236
<dependencies>
2337
<!-- Apache MINA Network Core -->
2438
<dependency>

0 commit comments

Comments
 (0)