CVE-2025-15366Published Jan 20, 2026 · Jan 20Updated Nov 10
IMAP command injection in user-controlled commands
Python Software Foundation CPython
Medium5.9Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython |
| No fix yet |
Original description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
From the CVE record · PSF