CVE-2025-15366

IMAP command injection in user-controlled commands

State
Published
Severity
5.9 Medium
Published
Jan 20, 2026
Updated
Aug 6, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

Description

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

Scores

CVSSScoreVectorSource
4.05.9 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.13.15Affected
  • 3.14.0 to before 3.14.7Affected
  • 3.15.0a1 to before 3.15.0a6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.