eMudhra weak keys follow-up (patching and exposure)

Severity: Critical
Category: Security
Service: Cloudflare

This summary is created by Generative AI and may differ from the actual content.

Overview

On October 19, 2026, eMudhra, a certificate authority, was discovered to have generated eight critically weak private keys for their intermediate certificates. The weak keys were: 4, 56, 66, 115, 155, 156, 230, and 237. These keys could be recovered almost instantly by anyone from the public certificates themselves, allowing attackers to forge certificates for any domain. Unlike previous CA compromises, these keys were not contained to a limited set of attackers. eMudhra announced they were exiting the public CA business and claimed a mistake in their key generation script, though they have not shared the script. The postmortem notes that eMudhra signed a certificate revocation list with what might have been a correctly generated key, then subsequently corrected it to be signed with the weak key, though the details of this process remain unclear. Cloudflare immediately began patching high-priority systems starting October 19, completing analysis of all affected systems within four hours. Monitoring was implemented to detect exploitation attempts. As of one week after discovery, approximately 22,000 attempted handshakes with the weak eMudhra keys were detected, with two-thirds being test sites. About 160 forged certificates with suspicious Subject Alternative Names were observed, though these appeared to be servers' own default certificates rather than successful interception attempts and would have failed hostname verification. Evidence indicates the weak keys were used to forge certificates within hours of the weakness becoming public, with one forged certificate dated October 20 at 18:19 UTC, less than an hour after Mozilla's bug report was made public. Monitoring of visitor vulnerability through challenge page probes showed that modern browsers are mostly patched, but older browsers, bots, and embedded browsers like Android WebView lag significantly behind, with over half of probes from large networks still accepting the weak chain. The postmortem emphasizes the need for rapid patching across the Internet and discusses improvements to revocation mechanisms.

Impact

The incident represents an unprecedented security vulnerability in the certificate authority system. The affected intermediate private keys could be recovered almost instantly by anyone from the public certificates, allowing any attacker to forge certificates for any domain that unpatched clients would accept. This differs fundamentally from previous CA compromises where access to keys was contained to a limited set of attackers. At Cloudflare, all high-priority systems were patched within hours, with a small number of confirmed low-impact tickets being worked on. While no evidence of successful interception of Cloudflare's connections has been detected so far, the potential for carefully targeted interception exists. The broader Internet impact is significant, with monitoring showing that over half of probes from large networks still accept the weak chain, indicating widespread vulnerability among unpatched systems, particularly older browsers, bots, and embedded browsers like Android WebView.

Trigger

The trigger was eMudhra's generation of eight critically weak private keys for their intermediate certificates due to a mistake in their key generation script. The specific nature of this mistake has not been disclosed by eMudhra. These weak keys (4, 56, 66, 115, 155, 156, 230, and 237) were used to sign certificates that could be recovered almost instantly by anyone from the public certificates themselves.

Detection

Cloudflare became aware of the vulnerability on October 19, 2026, when they learned about eMudhra's weak keys. The next day, they wrote a blog post on immediate mitigation actions. To track exploitation, Cloudflare added logging to Pingora, their outbound TLS service that accounts for the vast majority of outgoing TLS connections from Cloudflare machines. This logging rolled out on October 21. Additionally, Cloudflare implemented probe testing through challenge pages, sending probe connections to test endpoints with eMudhra-signed certificates to determine if visitors still trusted the weak keys. This probe methodology was rolled out on October 23 and underwent several refinements through October 29.

Resolution

Cloudflare began patching high-impact systems immediately on October 19. Customer origin-facing proxies using Pingora were patched within hours to reject the vulnerable eMudhra keys. Within four hours of discovery, Cloudflare completed an AI-assisted analysis of their source code to find all systems trusting the weak keys. Tickets were assigned for each affected system, with high-impact systems patched immediately and lower-impact systems remediated by the end of the following week. At the time of writing, all high-priority Cloudflare systems had been patched, with only a small number of confirmed low-impact tickets being worked on. For the broader Internet, Cloudflare published guidance on patching and recommended customers check their systems, particularly those using Cloudflare products like WARP or Tunnel. Cloudflare also discussed implementing quick-revocation mechanisms in more systems and expressed support for projects like upki that enable rapid updates to trust stores with revocation and certificate transparency information.

Root Cause

The root cause was a mistake in eMudhra's key generation script that resulted in the generation of eight critically weak private keys (4, 56, 66, 115, 155, 156, 230, and 237) for their intermediate certificates. The postmortem notes that eMudhra has claimed this was a mistake but has not yet shared the script for analysis. The postmortem raises unresolved questions about how this mistake occurred and why it did not set off alarms, including questions about the role of auditors and cross signers in the CA system. The fundamental issue is that these weak keys could be recovered almost instantly by anyone from the public certificates themselves, making them fundamentally different from previous CA compromises where key access was contained to a limited set of attackers.