Does Java Trust eMudhra's Compromised Intermediate CAs? Testing CVE-2026-91403 on OpenJDK and Temurin
Contents
TL;DR
What happened On October 21, 2026, OpenJDK published CVE-2026-91403 (CVSS 9.1) in an out-of-band advisory. Java’s bundled root store (cacerts) chains to eight eMudhra intermediate CAs whose private keys anyone could compute. JDK 8, 11, 17, 21, 25, and 27 are affected
Affected versions Per the OpenJDK advisory: 27.0.1, 25.0.5, 21.0.13, 17.0.21, 11.0.33, 8u512 and earlier. That includes the scheduled releases shipped the day before, on October 20. By October 23, the JDK 11 and 8 entries had been changed to 11.0.32.1 and 8u504
Update (October 23) Oracle issued its own Security Alert the same day, and it covers GraalVM too. OpenJDK 27.0.1.0.2 rejected the compromised chains with default settings
Update (October 26) On October 24, OpenJDK published a new CVE, CVE-2026-114820 (CVSS 9.1), and the .0.2 builds such as 27.0.1.0.2 are now affected too. The next fix removes four eMudhra and Sectigo roots from cacerts. The fallback for systems that can’t update changed from replacing blocked.certs to deleting those roots, and on Debian and Ubuntu updating ca-certificates alone is no longer enough
What I saw With default settings, OpenJDK 27.0.1 connected to test hosts behind both the eMudhra root and the Sectigo root. Temurin 25.0.4.1 has no Sectigo AAA Certificate Services root in its cacerts, so it connected only through the eMudhra root
What to do
- Update to a fixed build once your vendor ships it
- If you can’t, replace
blocked.certsor turn on revocation checking. On my machine, both blocked the compromised chains (for the guidance from October 24 on, see the October 26 update) - On Linux, most distribution OpenJDK packages use the OS trust store, so update
ca-certificates. Homebrew and FreeBSD packages need the Java package itself updated (for Debian and Ubuntu, see the October 26 update)
On October 21, 2026, OpenJDK issued an out-of-band vulnerability advisory, separate from its quarterly schedule (OpenJDK Vulnerability Advisory: 2026/10/21).
It lists a single issue, CVE-2026-91403, with a CVSS score of 9.1, and every release family from JDK 8 to JDK 27 is affected.
Oracle and OpenJDK had shipped their scheduled updates only the day before, on October 20, and those builds are still in the affected range.
The fix for CVE-2026-91403 goes into certificate files that Java ships with.
The advisory only says it “concerns eight compromised intermediate CA certificates.” An intermediate CA is a certificate authority that sits under a root certificate and issues server certificates; it is compromised when its key is no longer safe, for example because a third party knows it.
These are eight intermediate CAs that the Indian CA eMudhra created in April 2025. These intermediates use elliptic curve keys, whose private keys are integers, and theirs were below 256, so anyone could brute-force them from the public keys in the certificates (Mozilla Bugzilla 2083449). With the private key, anyone can issue a certificate for any site in the name of that intermediate CA.
I covered the background in my previous post, where I tested curl, Node.js, Python, uv, and Go, but not Java.
Java keeps its own list of root certificates, separate from the browser, so I tested whether it accepts the compromised chains on my M4 Mac mini. I downloaded two OpenJDK builds for this.
Why Java trusts the compromised intermediate CAs
In TLS, the client follows signatures from the server certificate up through intermediate CAs to a root, and accepts the server if it trusts that root.
Java installed on its own, from Oracle, Adoptium, or similar vendors, decides which roots to trust from its bundled lib/security/cacerts file and does not use the OS or browser list.
Many Linux distribution OpenJDK packages use the OS certificates instead.
Of the eight compromised intermediates, six are for TLS and two are for code signing, and they chain to two roots.
One is eMudhra’s emSign ECC Root CA - G3; the other is Sectigo’s AAA Certificate Services.
Sectigo had cross-signed the same public keys so that the same intermediate CAs also chain to a different root. Because the keys are the same, that path is compromised too.
graph TD
A["emSign ECC Root CA - G3"] --> B["emSign Root TLS CA - G3"]
B --> C["Compromised intermediate CAs<br/>(6 for TLS)"]
D["AAA Certificate Services<br/>(Sectigo)"] --> E["Cross-signed certs<br/>with the same keys"]
C --> F["Private key can be computed,<br/>so fake certs can be issued"]
E --> F
Checking the cacerts in the two builds with keytool -list -cacerts showed that they contain different roots.
OpenJDK 27.0.1 from jdk.java.net has both roots, while Eclipse Temurin 25.0.4.1 from Adoptium has only emSign ECC Root CA - G3 and lacks AAA Certificate Services.
Browsers could reject these intermediates because Mozilla, Chrome, Apple, and Microsoft each pushed revocation data through their own mechanisms.
Browsers also require Certificate Transparency (CT, which makes CAs log issued certificates publicly) and reject certificates missing from the logs. According to the test site, no certificates chaining to these intermediates showed up in CT logs before the block, so browsers that enforce CT were not attacked (eMudhra Intermediate CA Compromise).
Java’s standard TLS implementation does not fetch that revocation data by default, and it does not require CT.
Connecting with OpenJDK 27.0.1 and Temurin 25.0.4.1
The reporter’s test site has hosts that serve certificates signed by the compromised intermediates.
dv-g3b-emudhra.we-have-a-problem.com serves a chain to the eMudhra root, and dv-g3b-aaa-emudhra.we-have-a-problem.com serves a chain through Sectigo’s AAA Certificate Services. A Java runtime that connects to these without an error trusts the compromised intermediates.
I ran the tests between 7:00 and 8:00 JST on October 22, 2026, on this setup.
| Item | Details |
|---|---|
| Machine | Mac mini (M4) |
| OS | macOS 26.5.2 |
| OpenJDK | 27.0.1+9 (macOS aarch64 build from jdk.java.net) |
| Temurin | 25.0.4.1+1 (latest JDK 25 on Adoptium) |
Temurin 25.0.5, the build matching the October 20 update, was not out yet at that point.
I verified both downloads against the vendors’ SHA-256 checksums before extracting them.
For the connection I used java.net.http.HttpClient and ran the source file directly with java Fetch.java <URL>.
import java.net.URI;
import java.net.http.*;
public class Fetch {
public static void main(String[] a) throws Exception {
try {
var r = HttpClient.newHttpClient().send(
HttpRequest.newBuilder(URI.create(a[0])).build(),
HttpResponse.BodyHandlers.ofString());
System.out.println(r.statusCode());
} catch (Exception e) {
for (Throwable c = e; c != null; c = c.getCause()) System.out.println(c);
}
}
}
In this test, “connected (HTTP status 200)” is the bad result, and an error is the correct behavior.
| Build | Via eMudhra root | Via Sectigo root |
|---|---|---|
| OpenJDK 27.0.1 | Connected (200) | Connected (200) |
| Temurin 25.0.4.1 | Connected (200) | unable to find valid certification path |
With default settings, OpenJDK 27.0.1 connected to both hosts.
Temurin 25.0.4.1 could not reach a trusted root for the Sectigo chain, but only because its cacerts lacks AAA Certificate Services. Through the eMudhra root it still connected.
I also connected to https://www.google.com/ alongside the test hosts to confirm that a normal site returned 200 in every configuration.
Turning on revocation checking
The advisory recommends turning on revocation checking as one option if you can’t update.
Revocation checking fetches the CA’s certificate revocation list (CRL) or similar data on each connection to see whether a certificate has been revoked, and Java’s TLS stack has it off by default. Two system properties turn it on.
java -Dcom.sun.net.ssl.checkRevocation=true \
-Dcom.sun.security.enableCRLDP=true \
Fetch.java https://dv-g3b-emudhra.we-have-a-problem.com/
At first I put the test options in a shell variable and ran java $O Fetch.java.
That made every revocation-enabled case return 200, on both OpenJDK 27.0.1 and Temurin 25.0.4.1. zsh does not split unquoted variables on whitespace, so the two -D options reached Java as one argument and checkRevocation never became true.
After rerunning with the options written out directly as above, both OpenJDK 27.0.1 and Temurin 25.0.4.1 rejected the compromised intermediate with CertificateRevokedException, reason CA_COMPROMISE.
| Build | Via eMudhra root | Via Sectigo root |
|---|---|---|
| OpenJDK 27.0.1 | Rejected (CA_COMPROMISE) | Rejected (CA_COMPROMISE) |
| Temurin 25.0.4.1 | Rejected (CA_COMPROMISE) | Not tested (fails with default settings) |
The debug output from -Djava.security.debug=certpath showed Java fetching the CRL from http://crl.emsign.com/?roottlscag3.crl and finding the intermediate revoked.
The revocation date recorded in Java’s exception was October 18, 2026, 18:24 JST for the eMudhra chain. For the Sectigo chain it was May 14, 2025, the same date the cross-signed certificate was issued.
Revocation checking fetches the CRL on every connection, though, so connections fail where the distribution point is unreachable.
On my machine, one of several back-to-back runs of the same command failed with java.net.SocketException: Connection reset.
Blocking the certificates with a hand-edited blocked.certs
The other option is to replace lib/security/blocked.certs, the list of certificates Java refuses.
The advisory says to download the new blocked.certs for your OS and replace $JDK_HOME/lib/security/blocked.certs with it. On JDK 8 the file is named blacklisted.certs. It also says to back up the file first and move over any lines you had added yourself.
That was the guidance in the October 21 advisory. The guidance from October 24 on no longer mentions replacing blocked.certs (see the October 26 update).
When I tried the ops.java download links from the advisory between 7:00 and 8:00 JST on October 22, 2026, both the Unix and Windows links returned HTTP 403 with an Unexpected outage page.
Instead, I made a copy of OpenJDK 27.0.1 and tried adding entries to its blocked.certs by hand.
blocked.certs is a text file whose first line is Algorithm=SHA-256, followed by one certificate SHA-256 per line, so I took the SHA-256 of 16 certificates (8 intermediates and 8 cross-signed certificates) from the impacted-intermediates.json that the test site publishes and appended them.
python3 -c "import json; [print(x['sha256']) for x in json.load(open('impacted-intermediates.json'))]" \
>> "$JDK_HOME/lib/security/blocked.certs"
With the edited JDK, both hosts failed with Untrusted certificate: CN=EM DV TLS CA - G3B even without revocation checking, and https://www.google.com/ still returned 200.
All I added were those 16 SHA-256 lines, and the distributed blocked.certs is built differently. The fix in OpenJDK itself (8395142: CA Enhancements) adds the same 16 certificates to blocked.certs.pem and also changes how the file is generated so that alternative encodings of ECDSA (elliptic curve) signatures match. Hand-added lines are a stopgap, meant to be replaced with the distributed file once the download is back.
Two of the eight intermediates are for code signing, so signed JAR verification is involved too. The advisory says that on JDK 17 and later, jarsigner -verify -revcheck -strict checks revocation as well.
Both blocked.certs and the revocation settings are separate for each Java installation.
Fixed Java builds and OS packages
The advisory does not list fixed version numbers, and the test site lists the fixed Java versions as 27.0.1.0.2, 25.0.5.0.2, 21.0.13.0.2, 17.0.21.0.2, 11.0.33.0.2, and 8u511 (OpenJDK, Oracle JDK).
OpenJDK’s JDK 25 repository got a commit on October 21 titled “Bump update version for OpenJDK: jdk-25.0.5.0.2” (openjdk/jdk25u).
For JDK 8 the numbers conflict: the advisory says 8u512 and earlier are affected, while the test site lists 8u511 as fixed. Which one is right could not be confirmed at the time of writing.
The advisory splits the response by how Java was installed.
| How Java was installed | Certificates used | What to do |
|---|---|---|
| Standalone OpenJDK (Oracle JDK, Temurin, and other tarballs or installers) | Java’s bundled cacerts | Update to a fixed build. If you can’t, replace blocked.certs or turn on revocation checking |
| OpenJDK packages from Arch Linux, Debian, Devuan, Fedora, Gentoo, Oracle Linux, RHEL, Ubuntu | Mostly the OS certificates | Update the OS ca-certificates (for Debian and Ubuntu, see the October 26 update) |
| OpenJDK packages from Homebrew and FreeBSD | Bundled with Java | Update the package itself |
As of 7:21 JST on October 22, 2026, Homebrew had openjdk at 27, openjdk@21 at 21.0.13, and openjdk@17 at 17.0.21. None of them was a .0.2 build yet.
The fixed ca-certificates versions for Debian and Ubuntu are in the table in my previous post.
Oracle’s and OpenJDK’s October 20 updates
CVE-2026-91403 is not in Oracle’s quarterly scheduled fix release, the Critical Patch Update (CPU), released the day before on October 20, 2026 (Oracle Critical Patch Update Advisory - October 2026).
That CPU has 55 Java SE fixes, 49 of which are remotely exploitable without authentication. The highest CVSS score is 7.5, for two issues: a WebKitGTK vulnerability used by JavaFX (CVE-2026-43660) and the Java plugin (CVE-2026-91484).
Oracle notes that its Java CVSS scores assume applets and similar code run with administrator privileges, and that scores are lower without them.
OpenJDK’s advisory the same day listed 26.0.2.1, 25.0.4.1, 21.0.12.1, 17.0.20.1, 11.0.32.1, and 8u504 and earlier as affected (OpenJDK Vulnerability Advisory: 2026/10/20).
Oracle JDK release notes put the security baseline (the oldest version in each family that Oracle says to stay above) at 25.0.5, 21.0.13, 17.0.21, 11.0.33, and 8u511 (JDK 25.0.5 Release Notes).
The Temurin 25.0.4.1 I tested does not include the October 20 fixes either. Adoptium’s API still listed 25.0.4.1 as the latest JDK 25 between 7:00 and 8:00 JST.
According to Oracle’s advisory, security fixes ship on the third Tuesday of every month, and months without a CPU get a Critical Security Patch Update (CSPU). The next one is the CSPU on November 17, 2026, and the Oracle JDK 25.0.5 release notes also recommend not using 25.0.5 after that date.
Update (October 23, 2026)
Oracle’s Security Alert
Oracle also published a Security Alert for CVE-2026-91403 on October 21 (Oracle Security Alert Advisory - CVE-2026-91403).
A Security Alert is Oracle’s out-of-band document for fixes that can’t wait for the next scheduled release (CPU or CSPU), so it is separate from the previous day’s CPU.
The CVSS score matches OpenJDK’s 9.1: network attack vector, low attack complexity, no privileges and no user interaction required.
Confidentiality impact (traffic can be read) and integrity impact (traffic can be altered) are high, and there is no availability impact (the service can’t be knocked offline).
The component is JSSE, Java’s TLS implementation.
Here are the products and versions Oracle lists as affected.
GraalVM, a runtime built on Oracle’s JDK, is on the list too.
| Product | Affected versions |
|---|---|
| Oracle Java SE | 8u511, 8u511-perf, 11.0.33, 17.0.21, 21.0.13, 25.0.5, 27.0.1 |
| Oracle GraalVM for JDK | 17.0.21, 21.0.13 |
| Oracle GraalVM Enterprise Edition | 21.3.20 |
The alert itself doesn’t give fixed version numbers. It points to a My Oracle Support document that requires a login.
As of around 17:30 JST on October 23, Oracle’s public JDK release notes for every family only went up to the October 20 releases (27.0.1.0.1 and so on, and 8u511 b31 for JDK 8).
For JDK 8, Oracle lists 8u511 as an affected version, which contradicts the reporter’s test site listing 8u511 as fixed.
OpenJDK quietly revised its advisory
OpenJDK’s advisory has also changed its list of affected versions.
11.0.33 became 11.0.32.1 and 8u512 became 8u504, while the “Last update” line at the bottom still reads “2026/10/21 20:26 UTC”.
Internet Archive snapshots show the old text as late as 22:00 JST on October 22 and the new text by 10:00 JST on October 23.
11.0.32.1 and 8u504 are the same numbers listed as affected in OpenJDK’s October 20 advisory.
Where fixed builds are available
For JDK 11 and later, the fixed builds add .0.2 to the October 20 version number, so the JDK 27 fix is 27.0.1.0.2.
jdk.java.net now ships 27.0.1.0.2.
As of 17:33 JST on October 23, Homebrew had openjdk at 27.0.1.0.2, openjdk@25 at 25.0.5.0.2, openjdk@21 at 21.0.13.0.2, and openjdk@17 at 17.0.21.0.2.
OpenJDK’s repositories mark the source of each release with a tag.
In the JDK 25 repository, the fix commit “8395142: CA Enhancements” is in jdk-25.0.5.0.2-ga, the tag for the 25.0.5.0.2 general availability release, but not in the earlier jdk-25.0.5+8 tag (openjdk/jdk25u).
Adoptium’s API shows the macOS (Apple Silicon) Temurin build moving to 25.0.5+8 on October 22. That version number matches the tag from before the fix, so upgrading Temurin to 25.0.5 most likely does not bring this fix. The Windows x64 build was still at 25.0.4.1 as of October 23.
Testing 27.0.1.0.2
To see whether the fixed build actually rejects the chains, I tested on a Windows 11 PC this time.
I downloaded the Windows x64 builds of OpenJDK 27.0.1 (27.0.1+9) and 27.0.1.0.2 (27.0.1.0.2+1) from jdk.java.net, checked them against the published SHA-256 hashes, and ran the same Fetch.java with default settings.
The test ran at 17:33 JST on October 23.
| Build | Via eMudhra root | Via Sectigo root | www.google.com |
|---|---|---|---|
| OpenJDK 27.0.1 | Connected (200) | Connected (200) | 200 |
| OpenJDK 27.0.1.0.2 | Rejected (Untrusted certificate) | Rejected (Untrusted certificate) | 200 |
200 means the connection succeeded. Untrusted certificate means Java didn’t trust the certificate and refused the TLS connection.
Without revocation checking, 27.0.1.0.2 failed on both hosts with Untrusted certificate: CN=EM DV TLS CA - G3B. That’s the same error I got earlier in this post after adding 16 lines to blocked.certs by hand, so the fixed build blocks the chains the same way as that stopgap.
The cacerts in 27.0.1.0.2 still contains emsigneccrootcag3 and comodoaaaca (Sectigo’s AAA Certificate Services).
Removing a root would also break legitimate certificates under it. This fix keeps the roots and blocks only the compromised intermediates through blocked.certs. The next fix changed that approach and removed the roots (see the October 26 update).
blocked.certs grew from 39 to 87 lines, and all 48 new lines are SHA-256 hashes of certificates (fingerprints that identify each certificate).
I didn’t confirm why there are more than the 16 lines I added by hand. The OpenJDK commit changes how the file is generated so that alternate encodings of ECDSA signatures also match, which likely accounts for the difference.
Update (October 26, 2026)
New CVE-2026-114820 covers the .0.2 builds too
On October 24, OpenJDK issued a second out-of-band advisory (OpenJDK Vulnerability Advisory: 2026/10/24).
It lists one issue, CVE-2026-114820, with a CVSS score of 9.1, in the same TLS component as before (security-libs/javax.net.ssl).
The affected versions are “27.0.1.0.2, 25.0.5.0.2, 21.0.13.0.2, 17.0.21.0.2, 11.0.32.1, 8u504, and earlier”, which includes the 27.0.1.0.2 build I tested as a fixed build on October 23.
The advisory doesn’t describe the vulnerability. For what to do, it just points to openjdk.org/emudhra.
The next fix removes four roots
The fix commit “8395690: CA certificate improvements” deletes four root certificates from cacerts (openjdk/jdk27u).
The removed entries are emsigneccrootcag3, emsignrootcag1, emsignrootcag2, and comodoaaaca: three eMudhra roots and Sectigo’s AAA Certificate Services.
The 27.0.1.0.2 build I tested on October 23 kept the roots and blocked only the compromised intermediates through blocked.certs.
This fix removes not only emSign ECC Root CA - G3 and AAA Certificate Services, the roots the compromised intermediates chained to, but also eMudhra’s G1 and G2 roots. Because whole roots are removed, Java’s bundled cacerts will also refuse legitimate sites whose certificates chain to them.
Neither the commit nor the advisory explains why G1 and G2 were removed as well.
Where builds stand (October 26)
I checked the builds available around 19:00 JST on October 26.
”Affected” and “newer than affected” in the table are based on the affected versions listed in OpenJDK’s advisory.
| Source | Version | CVE-2026-114820 |
|---|---|---|
| jdk.java.net | 27.0.1.0.3 | Newer than affected |
Homebrew openjdk | 27.0.1.0.3 | Newer than affected |
Homebrew openjdk@25 / @21 / @17 / @11 | 25.0.5.0.2 / 21.0.13.0.2 / 17.0.21.0.2 / 11.0.32.1 | Affected |
| Temurin 25 (Windows x64) | 25.0.4.1 | Affected |
| Temurin 25 (macOS Apple Silicon) | 25.0.5+8 | Affected |
| Amazon Corretto 25 | 25.0.5.0.9 | Unknown |
Corretto published 25.0.5.0.9 on GitHub on October 23.
Its CHANGELOG, however, mentions none of eMudhra, JDK-8395690, or CVE-2026-114820. I couldn’t confirm whether this fix is included.
The fallback for systems that can’t update has changed
The guidance at openjdk.org/emudhra (last updated 2026/10/24 19:24 UTC) differs from the October 21 advisory.
The preferred fix is to update to a vendor build whose release notes mention JDK-8395690 and CVE-2026-114820.
If you can’t update, back up cacerts in each Java installation, delete the same four roots with keytool, and restart any running Java processes. On JDK 11 and later, the commands are:
keytool -delete -cacerts -alias "emsignrootcag1 [jdk]"
keytool -delete -cacerts -alias "emsignrootcag2 [jdk]"
keytool -delete -cacerts -alias "emsigneccrootcag3 [jdk]"
keytool -delete -cacerts -alias "comodoaaaca [jdk]"
On JDK 8, add -keystore $JDK_HOME/jre/lib/security/cacerts to each command.
The page says to ignore “does not exist” errors for aliases that aren’t there.
If you can’t do that either, the remaining options are turning on revocation checking, as tested earlier in this post, and jarsigner -verify -revcheck -strict for signed JARs.
The page no longer mentions replacing blocked.certs.
Both the 16 lines I added by hand earlier in this post and the blocked.certs in 27.0.1.0.2 predate CVE-2026-114820.
The page now also offers CheckCerts.java for checking whether you’re affected (it runs on JDK 8 and later).
Updating ca-certificates is not enough on Debian and Ubuntu
The same page also changes the advice for OS-provided Java.
For Arch Linux, Fedora, Gentoo, Oracle Linux, and RHEL, updating the OS certificates is likely sufficient.
For Debian and its derivatives (Devuan, Ubuntu), however, it says updating ca-certificates and ca-certificates-java is not enough.
That’s because of a long-standing bug (Debian bug 1069251). As a workaround (Debian bug 1142266), run these commands as root:
rm -f /etc/ssl/certs/java/cacerts
update-ca-certificates --fresh
/etc/ssl/certs/java/cacerts is the trust store file that Debian’s Java uses, and these commands delete it and rebuild it.
Homebrew and FreeBSD Java packages still need the package itself updated, as before.