CVE-2025-15366

IMAP command injection in user-controlled commands

MEDIUM
5.9
CVSS Score
Published: January 20, 2026 at 09:40 PM UTC
Updated: August 6, 2026 at 01:16 AM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.13.153.14.0 ≤ v < 3.14.73.15.0a1 ≤ v < 3.15.0a63.14.03.15.0a1
Affected range stops below 3.13.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.14.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.15.0a6, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.9MEDIUMPSF
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card