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 commands #143921
If there is someone familiar enough with IMAP to review this, please do.
Otherwise I need a bit more detail, since I'm not that familiar with IMAP, and both the RFC and the code are quite complex. Can you cover how the RFC makes non-printables (other than space) illegal in 'commands', and how that relates to the imaplib implementation of _command? I scanned the RFC and code for a bit, and while my gut says your PR is correct, it isn't obvious by any means.
Activity
pythongh-143921: Disallow control characters in IMAP commands
bitdancer commentedon Jan 16, 2026
If there is someone familiar enough with IMAP to review this, please do.
Otherwise I need a bit more detail, since I'm not that familiar with IMAP, and both the RFC and the code are quite complex. Can you cover how the RFC makes non-printables (other than space) illegal in 'commands', and how that relates to the imaplib implementation of _command? I scanned the RFC and code for a bit, and while my gut says your PR is correct, it isn't obvious by any means.
gh-143921: Reject control characters in IMAP commands
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
Update python310 to version 3.10.19 / rev 71 via SR 1332783
14 remaining items
gh-143921: Narrow the control character check in imaplib commands (GH…
[3.15] gh-143921: Narrow the control character check in imaplib comma…
[3.14] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, G…
[3.13] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, G…
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
caruccio commentedon Sep 17, 2026
Hi there. Is this fix planned for 3.10, 3.11 or 3.12?
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366
00474: CVE-2025-15366