tiran
(Christian Heimes)
October 21, 2026, 3:45pm
16
Golang has implemented and released a mitigation that blocks the compromised intermediate CAs by SPKI hash (subject public key information). I just filed a CPython ticket and PR that adds the same mitigation to Python’s ssl module. It’s a defense in depth that prevents connections when the OS, certifi, or pip are not up to date.
opened 02:55PM - 21 Oct 26 UTC
type-feature
type-security
topic-SSL
### Feature or enhancement
I propose to add a small denylist to `_ssl` that rej… ects any TLS certificate chain containing one of the recently compromised eMudhra intermediate CA keys. The check runs during certificate verification and matches the DER-encoded `SubjectPublicKeyInfo`, so cross-signed certs that reuse a key are blocked, too.
Yesterday a set of eMudhra intermediate keys were disclosed as compromised and revoked, see https://emudhra.we-have-a-problem.com/. `d=4` isn't a secure EC private key. Removing trust is the root store's job, but the update lags in practice, and there is no reliable way to propagate an *intermediate* revocation to applications. Until the roots are gone, Python still completes handshakes through a known-bad key.
As a defense in depth Python should blocks those connections in the meantime. With a simple callback, this can be enforced on every `SSLContext` when verification is enabled (`CERT_OPTIONAL` / `CERT_REQUIRED`); `CERT_NONE` is unaffected.
### Has this already been discussed elsewhere?
No response given
### Links to previous discussion of this feature:
Golang has implemented filtering to address CVE-2026-111943.
- Go issue: https://github.com/golang/go/issues/82345
- Go fix (crypto/x509): https://go.dev/cl/851047
- eMudhra disclosure and affected intermediates: https://emudhra.we-have-a-problem.com/
### Linked PRs
* gh-160042
8 Likes