CVE-2025-15366 Details
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
A command injection vulnerability has been identified in the Python imaplib module. When a user-controlled command is sent, additional commands can be injected by including newlines. This issue arises because the module does not properly sanitize input before processing it, allowing for the manipulation of IMAP commands. The vulnerability affects the standard library imaplib module in CPython.
The vulnerability has been addressed by updating the imaplib module to reject commands containing control characters. Users should ensure they are using a version of Python that includes this fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 20, 2026CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Python imaplib | All versions |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 6, 2026 | CVE Modified | [email protected] |
| Aug 5, 2026 | CVE Modified | [email protected] |
| Jul 9, 2026 | CVE Modified | [email protected] |
| Jul 7, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |
Volerion