Skip to content

Commit 065c732

Browse files
daymxnrlazo
andauthored
Bump protobuf to 3.25.5 (#6343)
Per [b/371058443](https://b.corp.google.com/issues/371058443), This bumps our protobuf deps to `3.25.5` to address [CVE 2024-7254](GHSA-735f-pc8j-v9w8). All relevant libraries should have a changelog attached, unless I missed any. This PR also fixes the following: - [b/371223043](https://b.corp.google.com/issues/371223043) -> Migrate protobuf deps to version catalog Fixes #6336 --------- Co-authored-by: Rodrigo Lazo <rlazo@users.noreply.github.com>
1 parent b49d448 commit 065c732

File tree

29 files changed

+53
-35
lines changed

29 files changed

+53
-35
lines changed

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ ext {
5454
robolectricVersion = libs.versions.robolectric.get()
5555
androidxTestCoreVersion = libs.versions.androidx.test.core.get()
5656
androidxTestJUnitVersion = libs.versions.androidx.test.junit.get()
57-
protocVersion = libs.versions.protoc.get()
58-
javaliteVersion = libs.versions.javalite.get()
59-
protobufJavaUtilVersion = libs.versions.protobufjavautil.get()
6057
}
6158

6259
apply plugin: com.google.firebase.gradle.plugins.PublishingPlugin
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Unreleased
2-
2+
* [changed] Updated protobuf dependency to `3.25.5` to fix
3+
[CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8).
34

encoders/firebase-encoders-proto/firebase-encoders-proto.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ java {
3232

3333
protobuf {
3434
protoc {
35-
artifact = "com.google.protobuf:protoc:$protocVersion"
35+
artifact = libs.protoc.get().toString()
3636
}
3737
}
3838

@@ -47,7 +47,7 @@ dependencies {
4747
testAnnotationProcessor project(':encoders:firebase-encoders-processor')
4848

4949
testImplementation 'com.google.guava:guava:31.0-jre'
50-
testImplementation "com.google.protobuf:protobuf-java-util:$protobufJavaUtilVersion"
50+
testImplementation libs.protobuf.java.util
5151
testImplementation "com.google.truth:truth:$googleTruthVersion"
5252
testImplementation 'com.google.truth.extensions:truth-proto-extension:1.0'
5353
testImplementation 'junit:junit:4.13.1'

encoders/protoc-gen-firebase-encoders/protoc-gen-firebase-encoders.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222

2323
protobuf {
2424
protoc {
25-
artifact = "com.google.protobuf:protoc:$protocVersion"
25+
artifact = libs.protoc.get().toString()
2626
}
2727
}
2828

encoders/protoc-gen-firebase-encoders/tests/tests.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626

2727
protobuf {
2828
protoc {
29-
artifact = "com.google.protobuf:protoc:$protocVersion"
29+
artifact = libs.protoc.get().toString()
3030
}
3131
plugins {
3232
firebaseEncoders {
@@ -51,7 +51,7 @@ dependencies {
5151

5252
testImplementation project(":encoders:firebase-encoders")
5353
testImplementation project(":encoders:firebase-encoders-proto")
54-
testImplementation "com.google.protobuf:protobuf-java:3.21.9"
54+
testImplementation libs.protobuf.java
5555
testImplementation "com.google.truth:truth:1.0.1"
5656
testImplementation 'junit:junit:4.13.1'
5757
}

firebase-config/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
2-
2+
* [changed] Updated protobuf dependency to `3.25.5` to fix
3+
[CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8).
34

45
# 22.0.0
56
* [changed] Bump internal dependencies

firebase-crashlytics-ndk/firebase-crashlytics-ndk.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ dependencies {
124124

125125
androidTestImplementation "androidx.test:core:$androidxTestCoreVersion"
126126
androidTestImplementation 'androidx.test:runner:1.4.0'
127-
androidTestImplementation "com.google.protobuf:protobuf-javalite:$javaliteVersion"
127+
androidTestImplementation libs.protobuf.java.lite
128128
androidTestImplementation 'com.linkedin.dexmaker:dexmaker:2.28.1'
129129
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:2.28.1'
130130
androidTestImplementation 'org.mockito:mockito-core:3.4.3'

firebase-crashlytics/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [changed] Updated protobuf dependency to `3.25.5` to fix
3+
[CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8).
4+
25

36
# 19.2.0
47
* [fixed] Improved data consistency for rapid user actions.

firebase-crashlytics/firebase-crashlytics.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ dependencies {
104104
androidTestImplementation(libs.androidx.test.runner)
105105
androidTestImplementation(libs.androidx.test.junit)
106106
androidTestImplementation("com.google.firebase:firebase-encoders-json:18.0.1")
107-
androidTestImplementation("com.google.protobuf:protobuf-java:3.21.11")
107+
androidTestImplementation(libs.protobuf.java)
108108
androidTestImplementation(libs.truth)
109109
androidTestImplementation("com.linkedin.dexmaker:dexmaker:2.28.3")
110110
androidTestImplementation(libs.mockito.dexmaker)

firebase-dataconnect/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Unreleased
2+
* [changed] Updated protobuf dependency to `3.25.5` to fix
3+
[CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8).
24

35
# 16.0.0-beta01
46
* [feature] Initial release of the Data Connect SDK (public preview). Learn how to
@@ -19,3 +21,4 @@
1921
([#6299](https://github.com/firebase/firebase-android-sdk/pull/6299))
2022
* [changed] Added `equals` and `hashCode` methods to `GeneratedConnector`.
2123
([#6177](https://github.com/firebase/firebase-android-sdk/pull/6177))
24+

0 commit comments

Comments
 (0)