You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reject control characters in IMAP and POP3 commands (CVE-2025-15366, CVE-2025-15367) - #469
Thanks for this. It seems like a useful change. Normally I would think it impractical to back-port so far, but the changes are not intrusive.
Technically, the problem I see is that the PR wants to change files in lib-python: they're meant to be pristene copies of CPython's code, at some version. (I think some are not, but let's not make it worse.) A foreground file in Lib supersedes the same name background file in lib-python during the build.
At present, only test_imaplib.py is a foreground file and the others are background. What we have to do in these circumstances is to make a foreground copy in Lib and change that.
The background files are out of date compared with 2.7.18, and slightly worse, the foreground on seems to be based on a later original. So let me sort that out (also #474), then we can merge from master or start this PR over.
That will be after we get 2.7.5 dusted.
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
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.
Hi,
This PR backports the CPython fixes for CVE-2025-15366 (imaplib) and CVE-2025-15367 (poplib):