Repository navigation
[3.14] gh-160040: Distrust compromised eMudhra intermediate CA keys (CVE-2026-115557) (GH-160042) - #160569
Merged
Conversation
…keys (CVE-2026-115557) (pythonGH-160042) The ssl module now rejects TLS certificate chains that contain any of a set of compromised eMudhra intermediate CA keys. This is an extraordinary measure and a last line of defense: removing trust is primarily the job of the platform root store, and the built-in denylist only blocks connections while that update has not yet reached the OS, a container image, or a bundled trust store in various Python packages. Entries are added to the denylist only under a very high threshold. The denylist matches on the public key (the SHA-256 digest of the RFC-5280 SubjectPublicKeyInfo), so it also covers the cross-signed certificates that reuse one of the distrusted keys. --------- Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> (cherry picked from commit 7dd8b47) Co-authored-by: Christian Heimes <christian@python.org>
gpshead
marked this pull request as ready for review
October 24, 2026 07:11
gpshead
requested review from
a team,
erlend-aasland and
picnixz
as code owners
October 24, 2026 07:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(cherry picked from commit 7dd8b47)
Co-authored-by: Christian Heimes christian@python.org
Manual backport notes (3.14):
Makefile.pre.inandPCbuild/_ssl.vcxproj{,.filters}conflicted only because main also listsModules/_openssl_mem.h(gh-156228, main-only). Resolved by adding justModules/_ssl/distrusted_spki.h; the filters file also gains theHeader Filesfilter definition (same GUID as main) since 3.14 had no headers listed. All other files are identical to the main commit.test_ssl,test_asyncio.test_sslandtest_asyncio.test_sslprotopass, includingtest_distrusted_spki.