
Proof-of-concept per CVE-2026-111943: recupera chiavi private deboli delle CA intermedie eMudhra, falsifica certificati TLS/code-signing ed esegue un server MITM basato su SNI insieme a uno scanner del trust store.
CVE: CVE-2026-111943 (Go), GHSA-6q48-6c7w-9gw2 (certifi) Data: Divulgato dal 17 al 22 ottobre 2026 Gravità: Critica — consente di falsificare certificati TLS e di firma del codice validi per qualsiasi nome host
Otto certificati CA intermedi eMudhra/emSign sono stati creati nell'aprile 2025 con chiavi ECC P-384 in cui lo scalare privato d era un intero molto piccolo:
d in {4, 56, 66, 115, 155, 156, 230, 237}
Chiunque può recuperare la chiave privata dal certificato pubblico in pochi millisecondi provando ogni scalare candidato. Sei degli otto intermediari potevano emettere certificati TLS per qualsiasi nome host; due erano CA di firma del codice.
| Data | Evento |
|---|---|
| 30 apr 2025 | Otto intermediari creati con chiavi deboli |
| Mag 2025 | Tutti e otto controfirmati dalla root AAA Certificate Services di Sectigo |
| 17 ott 2026 | Il ricercatore "Wayne" segnala la debolezza; Chrome/Firefox bloccano entro poche ore |
| 19 ott 2026 | Apple blocca tramite aggiornamento macOS/iOS |
| 20 ott 2026 | Microsoft blocca tramite Windows Update; rilasciato Go 1.27.3 |
| 22 ott 2026 | Le protezioni Apple raggiungono il rollout completo |
| Software | Versione corretta | Stato |
|---|---|---|
| Python certifi | 2026.10.19 | Aggiornamento richiesto |
| pip | 26.2.2 | Aggiornamento richiesto (include il proprio certifi) |
| Go | 1.27.3 / 1.26.10 | CVE-2026-111943 |
| Node.js 26.x | 26.12.1 | Blocklist SPKI |
| Node.js 24.x | 24.22.1 | Blocklist SPKI |
| Node.js 22.x | 22.23.4 | Blocklist SPKI |
| Electron 44 | 44.9.1 | Aggiornamento richiesto |
| Electron 43 | 43.8.1 | Aggiornamento richiesto |
| Electron 42 | 42.11.16 | Aggiornamento richiesto |
| Rust rustls-webpki | 0.103.16 | Aggiornamento richiesto |
| Rust webpki-roots | 1.0.10 | Aggiornamento richiesto |
| Bun | 1.4.4 | Aggiornamento richiesto |
| sigstore | 4.5.1 | Aggiornamento richiesto |
| Debian ca-certificates | 20250419~deb12u2 | Aggiornamento richiesto |
| Ubuntu ca-certificates | 20260816ubuntu0.* | Aggiornamento richiesto |
| Alpine ca-certificates | 20261020-r0 | Aggiornamento richiesto |
| NSS | 3.131.1 | Rimozione della root |
| curl CA bundle | 2026-10-20 | Aggiornamento richiesto |
| Java cacerts | Aggiungere 16 hash SHA-256 a blocked.certs | Correzione manuale |
[ 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
Gli otto certificati CA intermedi compromessi utilizzano chiavi ECC P-384 con scalari privati banalmente piccoli. Il modulo key_recovery.py:
d in {4, 56, 66, 115, 155, 156, 230, 237}ec.derive_private_key(d, SECP384R1())L'operazione richiede millisecondi perché ci sono solo 8 candidati da provare.
Il modulo cert_forger.py:
--chain emsign)Il modulo mitm_server.py:
Il modulo scanner.py verifica:
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: pip install cryptography