diff --git a/java/compatibility_tests/v2.5.0/pom.xml b/java/compatibility_tests/v2.5.0/pom.xml
index 83a7563afd9f1..472dad7a32515 100644
--- a/java/compatibility_tests/v2.5.0/pom.xml
+++ b/java/compatibility_tests/v2.5.0/pom.xml
@@ -18,7 +18,7 @@
2.5.0
${protoc.path}
- ${protobuf.version}
+ 3.25.5
${protoc.path}
${protobuf.version}