> ## Content Index
> Fetch the complete content index at: https://dampsnag.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# A Certificate Authority's Private Key Was the Number 4. Here's How to Check Your Servers Don't Still Trust It
- URL: https://dampsnag.com/blog/emudhra-ca-key-compromise-check/
- Published: 2026-10-22T11:05:54.000Z
- Updated: 2026-10-22T11:05:54.000Z
- Description: Eight eMudhra intermediate CA keys turned out to be tiny numbers, one of them literally 4. Browsers blocked them quickly, but servers, containers, Python, Node and Java may still trust them. Here's a five-minute check and how to fix it.
- Author: DampSnag
- Tags: Security, Patching, Self-Hosting

A certificate authority's private key should be a random number so large that nobody could ever guess it. Eight of the keys used by eMudhra, a certificate authority (CA) based in India, were between 1 and 255\. One of them was 4\. Anyone who looked at the public certificates could work out the private keys in well under a second, and with them, forge a certificate for any website.

**In short:** up-to-date browsers are fine. They blocked these certificates within hours of the report on 18 October (AEDT). The risk is everything else: servers, containers, Python, Node, Go and especially standalone Java, including the Java your Minecraft server probably runs on. Most of that software doesn't check whether a certificate has been revoked, so it keeps trusting these until its CA bundle is updated. Run the two-line curl test below on each machine and in each container, then update `ca-certificates`, rebuild your images and update Java.

The certificates were created in April 2025, so the keys were effectively public for about 17 months. Nobody knows whether anyone abused them in that time.

**Jump to:** [What went wrong](#what-went-wrong) · [Who's at risk](#whos-at-risk) · [The quick test](#the-quick-test) · [Python and Node](#python-and-node) · [Check your CA bundle](#check-your-ca-bundle) · [Java and Minecraft servers](#java-and-minecraft-servers) · [How to fix it](#how-to-fix-it) · [Patched versions](#patched-versions) · [My take](#my-take)

## What went wrong

The certificates in question are eight intermediate CAs created at an eMudhra key ceremony on 30 April 2025\. Six are for TLS (website) certificates and two are for code signing. All eight were also cross-signed by Sectigo's "AAA Certificate Services" root in May 2025, which means they chain to roots trusted by Apple, Google, Microsoft and Mozilla.

They use P-384 elliptic-curve keys. As Mozilla's Dennis Jackson explains in the [incident ticket](https://bugzilla.mozilla.org/show%5Fbug.cgi?id=2083449), a private key should be a random integer "between 1 and the group order", a number around 384 bits long. These eight "all used integers less than 256\. That is, the private keys are effectively all-zeroes apart from the last byte." To recover one, you just try 1, 2, 3 and so on until the result matches the certificate. [Scott Helme](https://scotthelme.co.uk/eight-bits-of-trust-emudhras-ca-keys-cracked-in-milliseconds/) recovered all eight on his laptop and lists them. The key for EM OV TLS CA - G3C is 4\. Others are 56 and 115.

How did that happen on proper hardware? eMudhra's own account, posted on the ticket, is that an "approved deviation" was added to its usual ceremony to test a key wrap/unwrap step, and "a flaw in the code resulted in the second pair of keys being created onboard which were weaker". Because the key labels were similar, the weak keys were "used by mistake" to create the certificate requests, including the ones sent to Sectigo. eMudhra says the keys were made on FIPS 140-2 Level 3 hardware security modules, and that its RSA keys and its other issuing CAs aren't affected. That's eMudhra's explanation, and it hasn't been independently confirmed. Commenters on the ticket point out that properly validated hardware shouldn't be able to generate a key like 4 by itself, and have asked eMudhra for the ceremony scripts and records.

According to [The Register](https://www.theregister.com/security/2026/10/22/certification-authority-emudhra-defends-its-laughably-weak-private-keys/5304647), eMudhra's public statement says the hierarchy went through independent audits two years in a row, and notes that TLS certificates are about 1% of its revenue.

It's also worth knowing how little effort this took to find. Dennis Jackson wrote that local AI agents "were able to recover the private key on their first attempt with a simplistic prompt", and Scott Helme confirmed the same.

### How it was handled

Times are from the Mozilla ticket, converted from UTC.

| UTC                     | AEDT                     | What happened                                                                               |
| ----------------------- | ------------------------ | ------------------------------------------------------------------------------------------- |
| 18:05, Sat 17 Oct       | 5:05 am, Sun 18 Oct      | The reporter, Wayne, emails Apple, Chrome, Microsoft, Mozilla and eMudhra with proof        |
| 20:06                   | 7:06 am                  | Mozilla receives the report, forwarded by Chrome                                            |
| 21:48                   | 8:48 am                  | Mozilla independently recovers the keys                                                     |
| 22:46                   | 9:46 am                  | Chrome's CRLSet blocklist includes the six TLS intermediates                                |
| 22:59                   | 9:59 am                  | Mozilla's OneCRL block for Firefox is complete                                              |
| 09:24–09:38, Sun 18 Oct | 8:24–8:38 pm, Sun 18 Oct | eMudhra revokes all eight, giving the reason as CA compromise                               |
| 10:35, Mon 19 Oct       | 9:35 pm, Mon 19 Oct      | Sectigo's revocation of its eight cross-signs takes effect (per the disclosure site's data) |

After several people recovered the keys independently, some of them publicly, Mozilla announced on 20 October (UTC) the emergency removal of trust in the root they chain to, "emSign ECC Root CA - G3". Chrome committed to the same, and Chrome Root Store v43, which drops it, is expected to reach Chrome Stable on the morning of Tuesday 27 October, US Pacific time (early on 28 October AEDT). eMudhra has stopped issuing under that root and estimates that about 30,000 customer certificates have to move to its RSA root, G1\. It says about 97% of them were issued through ACME.

eMudhra says only one of the eight (EM DV TLS CA - G3C) was ever in production, and that none of them issued end-entity certificates. The [disclosure site](https://emudhra.we-have-a-problem.com/) says there are no entries in the Certificate Transparency (CT) logs for these intermediates, so browsers that require CT (Chrome, Firefox, Safari and Edge) couldn't have been fooled. Clients that don't check CT could have been, and as the site says, "We do not know if attackers exploited the flawed key generation to target these clients."

## Who's at risk

**Probably fine:** up-to-date Chrome, Firefox, Safari and Edge. They block these intermediates directly and require CT. The disclosure site says the certificates have been blocked in Firefox and Chrome since 17 October, on Apple devices since 19 October and on Microsoft platforms since 20 October. One exception: Firefox for Android had a bug where some profiles weren't applying the blocklist. That's fixed in 158.0.2.

**Worth checking:** anything with its own CA bundle that doesn't check revocation. As Scott Helme puts it, most non-browser software trusts "a CA bundle on disk", doesn't check revocation by default and doesn't check CT. For self-hosters that means:

- Linux servers and containers with an old `ca-certificates` package
- Python, through certifi or the copy bundled inside pip
- Node, which ships its own list of roots, so Ghost blogs and other Node apps
- standalone Java builds, which many Minecraft servers run on
- Go binaries, CI runners, base images and `curl | sh` installers

**Windows code signing:** Microsoft trusts eMudhra's code-signing root directly, so software signed with the two code-signing CAs could look properly signed to anything that doesn't check revocation (Scott Helme). Microsoft's automatic trust list updates now block them.

**macOS command-line tools:** the disclosure site says the built-in `curl`, `git`, `python3`, `perl`, `ruby` and `openssl` check certificates against `/etc/ssl/cert.pem`, which hasn't been updated and doesn't check revocation. The site has a workaround if you rely on those.

**Devices you can't update**, like routers, printers and TVs, may keep trusting these certificates until they expire. According to the disclosure site's certificate data, that's April 2040 for the direct eMudhra chain and 31 December 2028 for the Sectigo cross-signs.

## The quick test

The researchers set up test sites that use the compromised certificates. A client that connects without an error still trusts them. Run this on every machine, and inside every container, that matters:

```bash
curl -sS -o /dev/null https://dv-g3b-emudhra.we-have-a-problem.com/;     echo "exit=$?"
curl -sS -o /dev/null https://dv-g3b-aaa-emudhra.we-have-a-problem.com/; echo "exit=$?"

```

- **`exit=60`** with "SSL certificate problem" is **good**. That curl rejects the compromised chain.
- **`exit=0`** is **bad**. That curl trusts it.
- Codes like 6, 7 or 28 mean a DNS, network or timeout problem. The result tells you nothing, so try again.

The first site tests the direct eMudhra chain and the second tests the Sectigo cross-sign. On a patched Debian 13 machine (`ca-certificates` `20250419+deb13u1`), I got `exit=60` for both.

For a container:

```bash
docker exec <container> sh -c 'curl -sS -o /dev/null https://dv-g3b-emudhra.we-have-a-problem.com/; echo "exit=$?"'

```

That only works if the image has curl, and many slim images don't. If yours doesn't, use the Python, Node or Java tests below with whatever the container does have.

A small privacy note: the site publishes counts of the user agents (and TLS fingerprints) that connect successfully. According to the site, it records only those counts.

## Python and Node

```bash
python3 -c "import urllib.request as u; u.urlopen('https://dv-g3b-emudhra.we-have-a-problem.com/', timeout=10); print('TRUSTED (vulnerable)')"
python3 -c "import requests; requests.get('https://dv-g3b-emudhra.we-have-a-problem.com/', timeout=10); print('TRUSTED (vulnerable)')"
node -e "fetch('https://dv-g3b-emudhra.we-have-a-problem.com/').then(()=>console.log('TRUSTED (vulnerable)')).catch(e=>console.log('rejected (good):', e.cause && e.cause.code))"

```

- The first Python line tests the system bundle. The second tests certifi, which is what `requests` uses. A traceback ending in `CERTIFICATE_VERIFY_FAILED` is good, and `TRUSTED (vulnerable)` is bad.
- For Node, `rejected (good): UNABLE_TO_GET_ISSUER_CERT_LOCALLY` is good.

Docker images can ship their own certifi bundle, separate from the operating system's store, so a container can pass the curl test and still fail the `requests` one. Run the Python check inside the container too. To find the bundle a particular Python actually uses and check it for the root:

```bash
python3 -c "import certifi; print(certifi.where())"
grep -c 'emSign ECC Root CA - G3' "$(python3 -c 'import certifi; print(certifi.where())')"
```

A count above 0 means that bundle still trusts the root. If a container might have had the backdoored LiteLLM 1.107.0, don't start Python in it at all. See the [LiteLLM post](https://dampsnag.com/blog/litellm-backdoor-check-safely/) for how to check it from the shell instead.

## Check your CA bundle

If you'd rather not make network requests, you can look inside the bundle itself. First check the package version and compare it with the [patched versions](#patched-versions) table:

```bash
# Debian / Ubuntu
dpkg-query -W -f='${Version}\n' ca-certificates
# Alpine
apk info -v ca-certificates
# Fedora / RHEL / Rocky / Alma
rpm -q ca-certificates

```

Then check whether the bad root is still in the bundle:

```bash
B=/etc/ssl/certs/ca-certificates.crt        # Debian/Ubuntu/Alpine
# B=/etc/pki/tls/certs/ca-bundle.crt        # Fedora/RHEL family
awk -v cmd='openssl x509 -noout -subject' '/BEGIN CERT/{c=""} {c=c $0 "\n"} /END CERT/{print c | cmd; close(cmd)}' "$B" | grep 'emSign ECC Root CA - G3' || echo "G3 root not present (good)"

```

If it prints a `subject=... CN=emSign ECC Root CA - G3` line, the root is still trusted, so update. eMudhra's other roots (such as G1) aren't part of this incident, so they'll still show up, and that's expected. To check Python's certifi bundle, replace `"$B"` with `"$(python3 -m certifi)"`. On Fedora and RHEL you can also use `trust list | grep -i 'emSign ECC Root CA - G3'`.

## Java and Minecraft servers

This is the one I'd check first if you run a Minecraft server. Java often ships its own trust store (`cacerts`) and ignores the operating system's. It also doesn't check revocation by default, so a JVM with the old root in its `cacerts` will trust the compromised chain even on a fully patched OS.

First find out which Java is actually running your server:

```bash
java -version
readlink -f "$(command -v java)"

```

Then check that JVM's trust store for the root:

```bash
# JDK/JRE 9 and later
keytool -list -v -cacerts -storepass changeit 2>/dev/null | awk '/^Alias name:/{a=$0} /^Owner:/ && /emSign ECC Root CA - G3/{print a; print "  " $0}'
# JDK 8
keytool -list -v -keystore "$JAVA_HOME/jre/lib/security/cacerts" -storepass changeit 2>/dev/null | awk '/^Alias name:/{a=$0} /^Owner:/ && /emSign ECC Root CA - G3/{print a; print "  " $0}'

```

An `Owner: CN=emSign ECC Root CA - G3, ...` line means that JVM almost certainly trusts the compromised chain. No output means the root isn't there. `changeit` is Java's well-known default password for this file. It isn't a secret.

For a definitive answer, save this as `T.java` and run it with the same Java (it needs a full JDK 11 or later, not just a JRE):

```java
public class T { public static void main(String[] a) throws Exception {
  for (String h : a) { try { var c=(javax.net.ssl.HttpsURLConnection)java.net.URI.create("https://"+h+"/").toURL().openConnection(); c.setConnectTimeout(10000); c.getResponseCode(); System.out.println(h+": TRUSTED (vulnerable)"); } catch (javax.net.ssl.SSLException e) { System.out.println(h+": rejected (good) - "+e.getClass().getSimpleName()); } } } }

```

```bash
java T.java dv-g3b-emudhra.we-have-a-problem.com dv-g3b-aaa-emudhra.we-have-a-problem.com

```

I ran both checks on 22 October against the current Eclipse Temurin builds, a popular choice for Minecraft servers:

- **Temurin 21.0.12.1**, the newest Temurin 21 general release Adoptium offers, still has emSign ECC Root CA - G3 in its `cacerts`, and it **trusted** the direct chain (`dv-g3b-emudhra...: TRUSTED (vulnerable)`). It rejected the Sectigo cross-sign.
- **Temurin 25.0.5+8**, published at 7:18 pm AEDT on 22 October (08:18 UTC), has the root removed and rejected both.

If your server runs on Temurin 21, it's on exactly the build that failed. At the time of writing, Adoptium only had early-access builds of the fixed 21.0.13 release. Note that the [OpenJDK advisory](https://openjdk.org/groups/vulnerability/advisories/2026-10-21) lists 25.0.5 "and earlier" as affected, yet the Temurin 25.0.5+8 build already rejects the chain. Version numbers alone can mislead here, so trust the test result.

## How to fix it

The normal fix is to update:

```bash
# Debian / Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade ca-certificates
# Alpine
sudo apk upgrade ca-certificates
# Fedora / RHEL family
sudo dnf upgrade ca-certificates
# Python
python3 -m pip install -U certifi pip

```

Then **rebuild your container images** from updated base images and recreate the containers. Restarting a container doesn't change its CA bundle, and an image pinned to an old base won't pick up the fix. A [user-filed LiteLLM issue](https://github.com/BerriAI/litellm/issues/47904) is a good example: it reports that LiteLLM's 1.106.x images still trust emSign ECC Root CA - G3\. I checked the clean `v1.106.2` image on 22 October. Its system bundle has no emSign certificate, but the certifi bundle inside the app's Python environment still contains emSign ECC Root CA - G3, so Python code using `requests` or `httpx` through certifi still trusts it. It's also the version people are being told to roll back to after [this week's LiteLLM backdoor](https://dampsnag.com/blog/litellm-backdoor-check-safely/).

**Java:** if your Java comes from your distro (Debian, Ubuntu, Fedora, RHEL, Arch, Gentoo or Oracle Linux), the OpenJDK advisory says it uses the system certificates, so updating `ca-certificates` is enough. FreeBSD and Homebrew Java have to be updated directly. For a standalone runtime like Temurin, update to a fixed build when one is available. Until then, OpenJDK suggests two stopgaps:

- Replace `$JDK_HOME/lib/security/blocked.certs` with the updated file linked from the advisory. On JDK 8 the file is called `blacklisted.certs`.
- Or start Java with `-Dcom.sun.net.ssl.checkRevocation=true -Dcom.sun.security.enableCRLDP=true`, which turns on revocation checking for TLS.

For a Minecraft server, the second option means adding those two flags to your start script before `-jar`. I haven't tested how either option behaves with specific server software or hosting panels, so check your server still starts and connects properly afterwards.

**Manual workarounds:** the disclosure site also has commands to distrust the roots by hand on various Linux distros, BSDs and NixOS, a fix for macOS's `/etc/ssl/cert.pem`, and a PowerShell script for Windows machines that don't get automatic updates. The site itself says the Linux steps are "NOT recommended for ordinary users", so treat them as a last resort for systems that can't get the normal update yet.

## Patched versions

From the [disclosure site's](https://emudhra.we-have-a-problem.com/) table, as checked on 22 October. Packages missing from your distro's list may simply not have been added yet.

| Software                      | Patched version                                                                                    |
| ----------------------------- | -------------------------------------------------------------------------------------------------- |
| Debian ca-certificates        | 12: 20250419\~deb12u2, 13: 20250419+deb13u1 (DSA-6572-1), sid: 20260816+nmu1                       |
| Ubuntu ca-certificates        | 20260816ubuntu0.22.04.1, 20260816ubuntu0.24.04.1, 20260816ubuntu0.26.04.1, 20260816ubuntu0.26.10.1 |
| Alpine ca-certificates        | 20261020-r0                                                                                        |
| Fedora ca-certificates        | 2026.2.92\_v9.0.319                                                                                |
| Arch ca-certificates-mozilla  | 3.131.1-1                                                                                          |
| Chainguard ca-certificates    | 20260909-r3                                                                                        |
| Python certifi                | 2026.10.19                                                                                         |
| pip                           | 26.2.2                                                                                             |
| uv                            | 0.13.4                                                                                             |
| Node.js                       | 22.23.4, 24.22.1, 26.12.1                                                                          |
| Go                            | 1.27.3, 1.26.10                                                                                    |
| Java (OpenJDK and Oracle JDK) | 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, 8u511                               |
| Docker Desktop                | 4.96.2                                                                                             |
| Bun                           | pending                                                                                            |
| Bottlerocket                  | pending                                                                                            |

A few notes:

- **Red Hat:** [bug 2556376](https://bugzilla.redhat.com/show%5Fbug.cgi?id=2556376) is at "MODIFIED", meaning a fix is in progress. I couldn't find a released RHEL package version yet, so RHEL, Alma and Rocky users should use the bundle check above and watch for the update.
- **Debian:** the security tracker lists the fixed bookworm and trixie packages under DSA-6572-1.
- **Java 8:** the disclosure site lists 8u511 as patched, but the OpenJDK advisory lists "8u512 and earlier" as affected. I can't tell which is right, so take the newest Java 8 build you can get and run the test.
- **Bun and Bottlerocket** are still pending.

## My take

Browsers got this right. Chrome and Firefox had blocks in place within about five hours of the report, before most people had heard about it. Everything else is slower, because revocation simply doesn't reach most software. For self-hosters, the lesson is the same one that keeps coming up on this blog, most recently with [PHP2Shell](https://dampsnag.com/blog/php2shell-php-update-self-hosters/) and the [GitLab patch](https://dampsnag.com/blog/gitlab-cve-2026-110264-patch-now/): updating the host isn't enough if your apps bring their own copy of the thing that needs fixing. Containers bring their own CA bundle, Java brings its own trust store, and Python brings certifi.

If you run a Minecraft server (I wrote about [AI agents and Minecraft servers](https://dampsnag.com/blog/ai-agents-minecraft-servers/) recently), the Java check takes two minutes. It's worth doing before Chrome's root store update lands next week and everyone moves on.

*DampSnag*