Repository navigation
fix(security): drop the emSign roots behind CVE-2026-91403 from image JDKs - #36087
Conversation
… JDKs eMudhra's compromised intermediates (CVE-2026-91403) chain to emSign ECC Root CA - G3, emSign ECC Root CA - C3 and emSign Root CA - C1. Temurin 21.0.13 removes those roots from cacerts, but eclipse-temurin:21-jdk and 21-jre-alpine are still on 21.0.12.1, which trusts the compromised chains. Delete the three roots by SHA-256 from the server images' jlink runtime and from the k8s operator's JRE, and fail the build if any is still trusted. Once the base images ship 21.0.13 the step deletes nothing.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Review follow-up. The reason the step deletes roots instead of adding the advisory's fingerprints to blocked.certs was only in the PR description: an ECDSA signature re-encoded as (r, n-s) gives an intermediate a new fingerprint that still verifies. Record it as ADR:2026-10-23-image-jdks-distrust-compromised-cas-by-deleting-roots, cite it from each step, and note why the operator keeps java as its entrypoint. docker/olivaw and docker/oss-scanner run Maven on a Temurin 21.0.11 base pinned by digest, so they never pick up 21.0.13 on their own; give them the same step.
| - A Dockerfile that ships a JDK deletes a compromised CA's roots from that JDK's `cacerts`, | ||
| matched by SHA-256, and fails the build if any is still there. A jlinked runtime is fixed in | ||
| its builder stage, because a distroless runtime stage has no shell. |
There was a problem hiding this comment.
⚠️ Bug: rdf-store JDK still trusts the emSign roots the new ADR requires removed
The new Accepted record says: "A Dockerfile that ships a JDK deletes a compromised CA's roots from that JDK's cacerts... and fails the build if any is still there." docker/rdf-store/Dockerfile breaks that rule. It is built from eclipse-temurin:21-jre-jammy (line 2) and from eclipse-temurin:21-jdk-jammy (line 93), and docker/development/docker-compose*.yml builds it through context: ../rdf-store. It has no root-removal step, so until the base reaches 21.0.13 the Fuseki JVM still trusts eMudhra chains that end at the three emSign roots. The Dockerfile.fuseki-* variants under docker/docker-compose-quickstart/ have the same gap.
Fix: add the same RUN step after the fuseki-runtime FROM in docker/rdf-store/Dockerfile. Also confirm that /entrypoint.sh does not re-import the system CA store, which the ADR's third bullet forbids. If these images are meant to be out of scope, narrow the ADR's Decision to name the images it covers, so the record matches what the tree does.
Add the same step to the rdf-store runtime stage (after FROM eclipse-temurin:21-jre-jammy AS fuseki-runtime):
# CVE-2026-91403 (ADR:2026-10-23-image-jdks-distrust-compromised-cas-by-deleting-roots)
RUN set -eu; \
roots='86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B BC4D809B15189D78DB3E1D8CF4F9726A795DA1643CA5F1358E1DDB0EDC0D7EB3 125609AA301DA0A249B97A8239CB6A34216F44DCAC9F3954B14292F2E8C8608F'; \
certs=$(keytool -list -v -cacerts -storepass changeit); \
printf '%s
' "$certs" \
| awk -v roots="$roots" 'BEGIN { split(roots, r, " "); for (i in r) want[r[i]] = 1 } /^Alias name:/ { alias = substr($0, 13) } /SHA256:/ { gsub(":", "", $2); if ($2 in want) print alias }' \
| while IFS= read -r alias; do keytool -delete -cacerts -storepass changeit -alias "$alias"; done; \
certs=$(keytool -list -v -cacerts -storepass changeit); \
if printf '%s
' "$certs" | tr -d ':' | grep -qE "$(echo $roots | tr ' ' '|')"; then \
echo "CVE-2026-91403: an emSign root is still trusted" >&2; exit 1; \
fi
Was this helpful? React with 👍 / 👎
The operator's TTL-cleanup tests (#35513) start an in-memory Kubernetes API on MockWebServer, pinned at mockwebserver 4.12.0, while #35557 moved okhttp to 5.5.0 through the root okhttp-bom. The explicit pin beat the BOM, so mockwebserver 4 ran against okhttp 5 core and every test that starts the fixture failed with NoClassDefFoundError: okhttp3/internal/Util. The two PRs merged an hour apart on 2026-10-15, and the operator unit-test job is path-filtered, so main stayed red until a PR touched openmetadata-k8s-operator. Drop the version so the BOM holds mockwebserver on 5.5.0 with okhttp-jvm.
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
Advisory
CVE-2026-91403 (CVSS 9.1, JSSE; OpenJDK advisory): eight eMudhra intermediate CAs were compromised, and Java still trusts them. Their chains end at three emSign roots that Temurin 21.0.13 removes from
cacerts: emSign ECC Root CA - G3, emSign ECC Root CA - C3 and emSign Root CA - C1 (NSS 3.131.1, adoptium/temurin-build#4586).Part of open-metadata/openmetadata-collate#7792.
Why a build step instead of a JDK bump
eclipse-temurin:21-jdkon Docker Hub is still Temurin 21.0.12.1. There is no21.0.13tag yet, and Temurin has not published 21.0.13 for aarch64 Linux. The 12 test hosts at https://emudhra.we-have-a-problem.com/ serve the compromised chains, and an image built from that tag today accepts all 6 that chain through emSign. Temurin 21.0.13+9 (x64) rejects all 12 because it drops these roots. This step does the same now, on both arches, and once the base is on 21.0.13 it deletes nothing.Not the advisory's 16-fingerprint
blocked.certslist: re-encoding an intermediate's ECDSA signature as (r, n−s) gives a certificate with a new fingerprint that still verifies under the issuer key. Temurin 21.0.12.1 with the 16 fingerprints added rejectsEM DV TLS CA - G3Bbut still trusts its forged twin. With the roots removed, no variant has anything to chain to.Change
docker/development/Dockerfile,docker/docker-compose-quickstart/Dockerfile: a step in thejre-builderstage, afterjlink, against/javaruntime/lib/security/cacerts.openmetadata-k8s-operator/Dockerfile: the same step against theeclipse-temurin:21-jre-alpineJDK, which is also 21.0.12.1. The image runsjavadirectly, so Temurin's entrypoint, which can re-import system CAs, never runs.The step deletes the three roots by SHA-256 rather than alias, then lists the store again and fails the build if any of them is still there.
Verification
Probe: a
java.net.httpGET to each of the 12 test hosts, pluswww.google.comas a control, run with the image's own JDK.docker/developmentjre-builderstage builddocker/docker-compose-quickstartjre-builderstage buildopenmetadata-k8s-operatorCVE-2026-91403: an emSign root is still trusted.docker build --check: no warnings.openmetadata-dist). The step touches only the JDK trust store.Review follow-up (f2b2521)
blocked.certs: an ECDSA signature re-encoded as (r, n−s) gives an intermediate a new fingerprint that still verifies.ADR:2026-10-23-image-jdks-distrust-compromised-cas-by-deleting-roots(docs/decisions/) and cited from every step. The operator comment also says why it keepsjavaas its entrypoint.docker/olivawanddocker/oss-scannerget the same step. Both run Maven on Temurin 21.0.11, pinned by digest (dbfd0852…), so they never pick up 21.0.13 on their own. On that base the step removes the three roots (144 → 141), and the probe rejects all 12 test hosts while the control still connects.scripts/harness/check_decision_records.py: clean.docker build --check: no warnings on all five Dockerfiles.Operator unit tests (f45e27d)
k8s_operator-unit-testswas already red onmain; this PR is the first to run it since. Two PRs that merged an hour apart on 2026-10-15 collided:okhttp-bom.MockWebServer. The operator pom pinned that atmockwebserver4.12.0.The explicit pin beat the BOM, so mockwebserver 4 ran against okhttp 5 core. All 7 tests that start the fixture failed with
NoClassDefFoundError: okhttp3/internal/Util. The job only runs whenopenmetadata-k8s-operator/**changes, so nothing ran it after both merged.Fix: drop the version, so the BOM holds
mockwebserveron 5.5.0 alongsideokhttp-jvm.PodManagerLabelSelectionTest5/5 andOMJobReconcilerTtlCleanupTest2/2. The full operator suite passes 73/73, with fabric8's okhttp client now running against the mock server on okhttp 5.docker-image-smoke-testalready built and smoke-tested the server image with the emSign step (DOCKER_RESULT: success).🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable defects were found.Summary
The PR removes three emSign roots from five images’ Java trust stores and stops each build if a targeted root remains.
Reviews (3) · Last reviewed commit: "fix(deps): let the okhttp BOM manage the..." · Reviewed by Greptile