Repository navigation
fix: distrust the compromised eMudhra CAs; 32.5.5:0 → 32.5.5:1 - #5
Merged
Merged
Conversation
jgraph/drawio:32.5.5 runs Tomcat on Temurin 11, whose own cacerts and the image's Ubuntu 26.04 bundle (ca-certificates 20260601~26.04.1) both trust emSign ECC Root CA - G3. The server's one outbound TLS path, /embed2.js?fetch=, fetches caller-named public URLs with the JVM's default trust. A root Dockerfile takes the upstream image as the IMAGE build arg, upgrades ca-certificates to 20260816ubuntu0.26.04.1 and rebuilds $JAVA_HOME/lib/security/cacerts from it with trust extract. The build fails if either store still holds G3. The manifest switches from dockerTag to dockerBuild naming the same image; README and UPDATING.md describe the layer. Tested on StartOS 0.4.0.2 (x86_64): updating from 32.5.5:0 kept the primary URL and raised no task, the running container's cacerts and bundle hold no G3, and the service started and restarted healthy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
eMudhra's intermediates chaining to emSign ECC Root CA - G3 have compromised keys.
jgraph/drawio:32.5.5is builtFROM tomcat:9.0-jdk11-temurinon Ubuntu 26.04, and both of its stores trust G3: Temurin 11.0.32.1's own$JAVA_HOME/lib/security/cacerts, and the system bundle (ca-certificates20260601~26.04.1). Upstream hasn't rebuilt the tag since Ubuntu published20260816ubuntu0.26.04.1, and a rebuild wouldn't fixcacerts, which Temurin ships itself.Why it matters here: the server's one outbound TLS path is
/embed2.js?fetch=, which fetches any public URL a caller names and returns the body to the embedding page. It connects throughUtils.openPinnedConnectionwithSSLSocketFactory.getDefault(), so the JVM'scacertsdecides trust./proxyis off,EXPORT_URLis unset, and the OAuth servlets hold only placeholder secrets, so nothing else reaches out.Change:
Dockerfiletakes the upstream image as theIMAGEbuild arg, upgradesca-certificatesand rebuildscacertsfrom the fixed store with p11-kit'strust extract(p11-kit is already in the image). The build fails if the bundle orcacertsstill holds G3, or ifkeytoolcan't read the store. The image'stomcatuser is restored; its entrypoint and command are inherited.dockerTag→dockerBuildwith the same image named. The layer is temporary; a cleanup issue tracks removing it once upstream ships a fixed image.Evidence the fix lands: both packed images carry ca-certificates
20260816ubuntu0.26.04.1, with G3 absent from the bundle and fromcacerts(120 entries; the other three emSign roots stay, as Ubuntu's fix intends). The same guard run on the unfixed image fails both checks. Tested on StartOS 0.4.0.2 (x86_64): updating from 32.5.5:0 kept the primary URL and raised no task, the running container's stores hold no G3, the service started and restarted healthy, and Java still verifies a real chain while rejecting an untrusted root.