CVE-2025-15366

published 20 Jan 2026 · updated 16 Nov 2026

IMAP command injection in user-controlled commands

5.9MediumCVSS 5.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.13.15, 3.14.7 and 3.15.0a6.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<3.13.15, >=3.14.0 <3.14.7, >=3.15.0a1 <3.15.0a63.13.15, 3.14.7, 3.15.0a6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-15366 severity on Zeptric[![CVE-2025-15366](https://zeptric.io/badge/cve/CVE-2025-15366.svg)](https://zeptric.io/cve/CVE-2025-15366)