Skip to content

fix/security: update Java image dependencies - #1050

Merged
chrapkowski-sg merged 2 commits into
mainfrom
java-image-security
Oct 30, 2026
Merged

chrapkowski-sg merged 2 commits into
mainfrom
java-image-security

Conversation

@chrapkowski-sg

@chrapkowski-sg chrapkowski-sg commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Updates Maven, Gradle, Coursier, and Ubuntu packages in the Java image to pick up security fixes.

Guava comes in transitively, so a dependency constraint in scip-shared selects 33.7.2-jre for the indexer and compiler plugins.

Also removes the unused Gradle build cache from the image and uses the downloaded Coursier JVM launcher directly, avoiding a redundant installation while preserving the system trust store.

The image bundles vulnerable Guava and Tika versions through its build tools.

Refresh Coursier, Maven and Gradle, apply available OS updates, and pin Guava 33.7.2-jre in the indexer and build-tool distributions. Build a standalone Coursier JVM launcher with Tika 3.2.2 while preserving the system trust store.

Remove bootstrap and Gradle build caches before their image layers are created.
@chrapkowski-sg

Copy link
Copy Markdown
Collaborator Author

This change is part of the following stack:

Change managed by git-spice.

@chrapkowski-sg
chrapkowski-sg marked this pull request as ready for review October 29, 2026 13:08
Use the upstream Coursier JVM launcher and leave Maven and Gradle bundled
dependencies unchanged instead of maintaining custom tool distributions.
Keep the tool upgrades, application Guava constraint, OS updates, and
unused Gradle build-cache cleanup.

Remove the Guava JAR replacements and Gradle metadata rewrite. Remove the
custom Coursier bootstrap and Tika override, retaining the runtime cache
required by the upstream launcher and the system trust-store behavior.

The Tika CVE remains a package finding, but its vulnerable XML parsing path
is not reached by Coursier 2.1.26 archive detection. Source inspection and
targeted checks against unpatched Tika 2.9.4 support that assessment; they
do not establish image-wide safety or Guava exploitability.

@christoph-sg christoph-sg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrapkowski-sg
chrapkowski-sg merged commit c8b5825 into main Oct 30, 2026
26 checks passed
@chrapkowski-sg
chrapkowski-sg deleted the java-image-security branch October 30, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants