diff --git a/pom.xml b/pom.xml
index 0639370981cb1..2a90007b639e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,6 +122,7 @@
2.5.0
+
3.21.9
${hadoop.version}
3.6.3
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 28aef586c50dd..6cc983666ce0b 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -86,7 +86,8 @@ object BuildCommons {
val javaVersion = settingKey[String]("source and target JVM version for javac and scalac")
// Google Protobuf version used for generating the protobuf.
- val protoVersion = "3.21.1"
+ // SPARK-41247: needs to be consistent with `protobuf.version` in `pom.xml`.
+ val protoVersion = "3.21.9"
// GRPC version used for Spark Connect.
val gprcVersion = "1.47.0"
}