[Bug] Security scanner flags vulnerable Guava 31.1-android in firebase-analytics (even in v24.0.0)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing the dependency declarations for firebase-analytics and play-services-measurement-impl in the repository, then check how their published dependency versions are managed. Confirm whether the Guava version can be updated safely across the affected artifacts; done means the dependency tree resolves to a patched Guava version and the affected SDK builds and tests pass.
Written by the indexing model from the issue text.
Description
Description:
When generating an SBOM and running a security scan using Grype, the build fails due to a vulnerable version of Guava (31.1-android) being pulled in transitively by firebase-analytics.
I am currently using firebase-bom: 33.9.0, which resolves firebase-analytics to 22.2.0. I noticed a similar report in #7583, but I want to highlight that simply updating to the latest firebase-analytics: 24.0.0 does not resolve this issue, as its underlying play-services-measurement-impl dependency still relies on the same vulnerable Guava version.
Vulnerabilities Flagged (Grype):
GHSA-xxph-c9ww-hj94 (High) - CompactHashMap/CompactHashSet/MapMakerInternalMap deserialization triggers uncontrolled memory allocation
GHSA-7g45-4rm6-3mm3 (Medium) - Insecure use of temporary directory
GHSA-5mg8-w23w-74h3 (Low) - Information Disclosure in Guava
Dependency Tree Context:
+--- com.google.firebase:firebase-analytics:22.2.0 (and 24.0.0)
| +--- com.google.android.gms:play-services-measurement:22.2.0 (and 24.0.0)
| | +--- com.google.android.gms:play-services-measurement-impl:22.2.0 (and 24.0.0)
| | | \--- com.google.guava:guava:31.1-android
Expected Behavior:
The Firebase Android SDK and its underlying Google Play Services dependencies should use a patched version of Guava (such as 33.7.2-android) to prevent CI/CD security scanners from blocking app releases.
Actual Behavior:
The SDK pulls in Guava 31.1-android, forcing developers to manually implement project-wide dependency constraints to override the version and clear security warnings.
Environment:
Firebase BOM: 33.9.0
Firebase Analytics: 22.2.0 (also verified issue exists in 24.0.0)
Scanner: Grype 0.121.0
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 733
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 72
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-android-sdk
-
api: remoteconfig
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/firebase-android-sdk#8827 · 1 comment ·
Maintainers usually reply within 1 day
-
Crashlytics plugin writes build ID lists in directory listing order, so APKs can differ between machinesPossibly taken @mrober claimed this 11 days ago. Openapi: crashlytics
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
firebase/firebase-android-sdk#8789 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
api: auth
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
firebase/firebase-android-sdk#8505 · 1 comment ·
Maintainers usually reply within 1 day
-
api: firebaseai
Difficulty 4/5 3-5 days Newbie friendliness 15/100
firebase/firebase-android-sdk#8835 ·
Maintainers usually reply within 1 day
-
api: auth
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/firebase-android-sdk#8832 ·
Maintainers usually reply within 1 day
All issues in firebase/firebase-android-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
linagora/twake-calendar-side-service#1578 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
moneymanagerex/android-money-manager-ex#3122 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tchiotludo/akhq#3438 ·
Maintainers usually reply within 1 day