CVE-2025-15366 MEDIUM

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

Vendor Python Software Foundation
Product CPython
Weakness CWE-77
Published January 20, 2026
Last update February 26, 2026

CVSS base score

5.9/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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

Key dates

02Disclosure timeline

January 20, 2026 CVE published
February 26, 2026 Record updated