What’s Vulnerable › Vulnerabilities

CVE-2025-15366: IMAP command injection in user-controlled commands

Description

The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

Affected products

How to fix

Upgrade to a fixed version: Python 3.13.15, 3.14.7, 3.15.0a6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-15366 or the next vulnerability affects your stack