Repository navigation
Conversation
…026-114938 The yaci-cli image copied its JRE from the floating eclipse-temurin:21-jre image, which is vulnerable to CVE-2026-114938 (Java4Shell). Temurin has no fixed build yet. java-setup now takes the JRE from the digest-pinned amazoncorretto:21.0.13-al2023-headless image (Corretto 21.0.13.1.2) and makes a self-contained copy at /opt/java/openjdk: the alternatives symlink is resolved and the cacerts symlink into /etc/pki is replaced with the real truststore file, so TLS keeps working on the ubuntu:22.04 base. JAVA_HOME and PATH are unchanged. Same change as the 0.12.1 patch release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Initial automated review · Aster Hi @satran004, thanks for the PR! 🙏 This is an automatic first check by an AI reviewer. It does not replace maintainer review and may be wrong. Reviewed commit: Suggestions:
Not tested: I did not build or run the images, verify the pinned registry digest, or reproduce the reported smoke tests. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Forward-port of the CVE-2026-114938 ("Java4Shell") runtime fix in PR #223 (0.12.1 on
release/0.12.x).mainhas the samejava-setuptarget. Thebloxbean/yaci-cliimage copies its JRE from the floatingeclipse-temurin:21-jreimage, and Temurin has no fixed build yet. This PR takes the JRE from the digest-pinned Amazon Corretto 21.0.13.1 image instead, at the same/opt/java/openjdkpath, soJAVA_HOMEandPATHdon't change. Onlyapplications/cli/Earthfilechanges.config/versionis left alone, so set the next version when cutting the release frommain.java-setupsourceeclipse-temurin:21-jre(floating; 0.12.0 shipped Temurin 21.0.12.1+1)amazoncorretto:21.0.13-al2023-headless@sha256:71b00527…bloxbean/yaci-cliJAVA_HOME/opt/java/openjdkWhy the copy needs a
RUNstepIn the Corretto image,
/usr/lib/jvm/java-21-amazon-correttois an alternatives symlink to an arch-specific directory. Itslib/security/cacertsalso links to/etc/pki/java/cacerts, which doesn't exist on Ubuntu.java-setuptherefore resolves the directory, copies it, puts the real truststore file in place of thecacertssymlink, and runsjava -versionas a build-time check.CVE, why Corretto, and what isn't affected
All of this is the same as PR #223. In short:
yaci-cli, Yaci Store, Yano) are built with-march=compatibility. The published 0.12.0 linux-x64 binaries disassemble to 0 VBMI instructions and 0zmmuses.Test plan
mainandv0.12.0have byte-identicalapplications/cli/Earthfiles before this change, so the 0.12.1 verification applies here too:earthlybuilt the real+java-setuptarget and copied it intoubuntu:22.04asdocker-builddoes, on linux/arm64 and linux/amd64. Both reportCorretto-21.0.13.1.2 (build 21.0.13.1+2-LTS),java.home=/opt/java/openjdk, andcacertsholds 135 certs.yaci_cli_mode=java:create-node -o --startstarted the devnet, the cluster API and the Yaci Store API returned 200, there were 0 errors, and an HTTPS request from the new JRE returned 200.+buildruns in CI at the next release.Interim mitigation
JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsicsinconfig/env. This only matters when the JVM is in use.🤖 Generated with Claude Code