Repository navigation
Bump Guava 33.3.0-jre -> 33.7.2-jre (CVE-2026-102554) - #5918
Conversation
Guava >=4.0 <33.7.2 is affected by CVE-2026-102554 (GHSA-xxph-c9ww-hj94, CWE-770): CompactHashMap/CompactHashSet/MapMakerInternalMap deserialization eagerly allocates memory sized by an attacker-controlled count. Fixed in 33.7.2. Signed-off-by: Ajimelec Gonzalez <ajimelec@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 3162ebc.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (75.38%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #5918 +/- ##
=========================================
Coverage 75.38% 75.38%
Complexity 10384 10384
=========================================
Files 963 963
Lines 41093 41093
Branches 4681 4681
=========================================
Hits 30977 30977
Misses 8810 8810
Partials 1306 1306
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Guava >=4.0 <33.7.2 is affected by CVE-2026-102554 (GHSA-xxph-c9ww-hj94, CWE-770): CompactHashMap/CompactHashSet/MapMakerInternalMap deserialization eagerly allocates memory sized by an attacker-controlled count. Fixed in 33.7.2. Build follow-ups required on 2.19 (already present on main): - core: add compileOnlyApi jsr305, no longer a transitive dep of Guava 33.4+ (needed by prometheus for javax.annotation.Nonnull), as in opensearch-project#4714. - plugin, integ-test: force org.jspecify:jspecify:1.0.1 to resolve the version conflict introduced by Guava 33.7.2, as in opensearch-project#5776. Manual backport of opensearch-project#5918. Signed-off-by: Ajimelec Gonzalez <ajimelec@amazon.com>
Description
Google Guava versions
>=4.0 <33.7.2are affected by CVE-2026-102554 (GHSA-xxph-c9ww-hj94, CWE-770 — Allocation of Resources Without Limits or Throttling), fixed in 33.7.2.CompactHashMap,CompactHashSet, andMapMakerInternalMapimplementreadObject()by reading an attacker-controlled element count / initial capacity from the stream and eagerly allocating backing arrays of that size before the actual stream content is consumed. A ~72-byte crafted serialized payload can force a multi-gigabyte allocation and crash the JVM withOutOfMemoryError.This PR bumps the Guava version pinned in this repo:
com.google.guava:guavaThe change is a single line in the root
build.gradle(guava_version). All modules (common,core,ppl,sql,legacy,protocol) reference${guava_version}, andplugin/integ-testforce it viaresolutionStrategy, so every module picks up the new version../gradlew :opensearch-sql-plugin:dependencyInsight --dependency com.google.guava:guava --configuration runtimeClasspathconfirmscom.google.guava:guava:33.7.2-jre (forced).No source or test changes were required.
Testing
./gradlew build -x doctest --continue(JDK 21) — BUILD SUCCESSFUL (compile, unit tests, spotless, jacoco,integTest)Related Issues
Addresses CVE-2026-102554 for the SQL plugin.
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.