Remediating the eMudhra Certificate Authority Compromise
The number 4️⃣ strikes again! What users can do about it.

On Oct 20, 2026, it was publicly disclosed that several eMudhra certificate authority certificates were compromised. ‼️
There was a bug in eMudhra's key generation ceremony that caused them to be generated with private keys like the literal number 4 and other small numbers that could be cracked in milliseconds, which researchers quickly figured out.
(credit: https://redd.it/1xdcjgl)
The impact
Anyone can trivially impersonate hosts to clients that trust the eMudhra intermediate CAs, and because these intermediates chain up to roots trusted by nearly all software on earth, pretty much any web host can be impersonated.
- If you're on a shared Wi-Fi network, your network administrator can MITM your traffic and impersonate Gmail or Apple or your bank.
- Even if you own the hardware and software stack on your LAN, your traffic still gotta leave your LAN and traverse the internet, where your ISP or someone (hello NSA 👀) tapping into the copper or fiber lines running across the world can intercept and modify your traffic, impersonating anyone.
Many layers
The problem is manifold: different software at different levels bundle their own trust stores, so while your OS might have gotten an emergency patch that distrusts the certs at the OS level, and your browser might've gotten an emergency patch, other software running on your patched OS can still be vulnerable.
What about revocation?
What about revocation protocols and online CRLs?
Unfortunately, revocation is broken, and most software up and down the stack doesn't consult or honor online CRLs in their cert validation path — including your OS, curl, the default crypto libraries in Go, Python, Rust, Node, etc.
CRLs and OCSP are unfortunately only really used by web browsers, and even then support is optional.
Patch the world
Software projects and organizations have been rushing to patch the vuln by updating their trust stores explicitly to blocklist the compromised CAs, but not every vendor is so fast on the uptake.
There are billions of devices running outdated software that don't get updates anymore, or that do but whose vendors don't keep up with the bleeding edge to put out weekly updates to keep up with the deluge of vulnerabilities that keep dropping in the new AI era, and they — your smart fridge, internet-connected car, or smart mattress (lol) — are truly hosed.
Patch it ourselves
For everything not receiving emergency vendor updates, we gotta patch it ourselves.
Let's walk through an example: patching UniFi devices.
- As of Oct 22, 2026, Ubiquiti has not released any mainline updates patching this on UniFi OS, UniFi Core, or the UniFi Network application, etc.
- EDIT: As of Oct 23, they've since released a Network app update for some devices, but UniFi OS hasn't been updated for every device.
The recommended fix in the advisory is to entirely distrust the roots which the eMudhra certs chain up to:
emSign ECC Root CA - G3AAA Certificate Services
Merely removing the compromised intermediates from a trust store is insufficient — a server can always present the intermediate along with whatever rogue leaf certificate they want to sign with it, and since the intermediate chains up to a trusted root, the cert chain will validate.
Note this does carry some compatibility risk for legitimate certs that chain up only to the AAA root through other uncompromised intermediates.
Patching UniFi
Tl;dr: on a UniFi device, there are several layers that need to be patched:
| Component | Change | Coverage |
|---|---|---|
| OS trust | Deselect affected roots in /etc/ca-certificates.conf → run update-ca-certificates to update bundle + hashed dir. |
Clients using Debian’s store, e.g., installed Python certifi, Go clients using system root pool. |
| UniFi Core | Extract Node.js bundled trust store certs → Remove affected roots → Update unifi-core launch env to select patched bundle. |
Default Node.js TLS clients |
| UniFi Network | Extract embedded CA roots from unifi executable → Build filtered JKS → Update launch env (UNIFI_NATIVE_OPTS) to override JKS. |
Java default trust-manager paths that honor the documented GraalVM override. |
The specific steps are quite complicated and may change depending on your device and what version of UniFi OS / Core / Network it's running, so rather than providing a deterministic script, I recommend you:
Point your coding agent at this article and have it analyze using SSH your specific UniFi environment and what components — potentially others beyond these which were relevant to my UniFi deployment — needs patching and what that would entail.

Back up your device — don't skip this step!
Apply the changes.
Restart device, verify connectivity, application health checks, logs
Verify affected CAs no longer trusted in each affected component.
Rest easy until the next 0-day drops in a week! 🙂

Comments
Join the discussionGreat insights on the eMudhra situation! It’s crucial to prioritize transparency in these compromises. I'm curious if you think stronger regulatory measures could've helped prevent this? Thanks for shedding light on a complex topic! pips
The point about distrusting the roots rather than just the compromised intermediates is the part most writeups miss: a server can present the intermediate alongside any leaf it signs, so removal at the intermediate level changes nothing while the root stays trusted. And CRL and OCSP being honored mostly only by browsers explains why the fix had to be explicit blocklists all the way down the stack.





