MEDIUM
Python Software Foundation
CVE published 2026-01-20
CVE-2025-15366
The imaplib module in Python is vulnerable to injection attacks when passed user-controlled commands containing newlines. This CVE was published on 2026-01-20T22:15:51.023Z and last modified on 2026-07-07T18:16:33.170Z. The vulnerability has a CVSS score of 5.9 and is classified as MEDIUM severity. Users of Python's imaplib module should assess their exposure and apply mitigations to reject commands with control characters. The vulnerability allows for command injection via newlines in user-controlled commands, which can lead to unauthorized actions.