Skip to content

fix: distrust the compromised eMudhra CAs; 32.5.5:0 → 32.5.5:1 - #5

Merged
stupleb merged 1 commit into
masterfrom
fix/emudhra-distrust
Oct 22, 2026
Merged

stupleb merged 1 commit into
masterfrom
fix/emudhra-distrust

Conversation

@stupleb

@stupleb stupleb commented Oct 22, 2026

Copy link
Copy Markdown
Owner

eMudhra's intermediates chaining to emSign ECC Root CA - G3 have compromised keys. jgraph/drawio:32.5.5 is built FROM tomcat:9.0-jdk11-temurin on 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-certificates 20260601~26.04.1). Upstream hasn't rebuilt the tag since Ubuntu published 20260816ubuntu0.26.04.1, and a rebuild wouldn't fix cacerts, 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 through Utils.openPinnedConnection with SSLSocketFactory.getDefault(), so the JVM's cacerts decides trust. /proxy is off, EXPORT_URL is unset, and the OAuth servlets hold only placeholder secrets, so nothing else reaches out.

Change:

  • A root Dockerfile takes the upstream image as the IMAGE build arg, upgrades ca-certificates and rebuilds cacerts from the fixed store with p11-kit's trust extract (p11-kit is already in the image). The build fails if the bundle or cacerts still holds G3, or if keytool can't read the store. The image's tomcat user is restored; its entrypoint and command are inherited.
  • The manifest switches dockerTag → dockerBuild with the same image named. The layer is temporary; a cleanup issue tracks removing it once upstream ships a fixed image.
  • Revision 32.5.5:1 with the eMudhra release note; README and UPDATING.md describe the layer. start-sdk stays at 3.1.0, npm's latest.

Evidence the fix lands: both packed images carry ca-certificates 20260816ubuntu0.26.04.1, with G3 absent from the bundle and from cacerts (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.

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>
@stupleb
stupleb merged commit 1cfa33f into master Oct 22, 2026
3 checks passed
@stupleb
stupleb deleted the fix/emudhra-distrust branch October 22, 2026 12:31
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.

1 participant