RCE in Python Software Foundation Cpython

CVE-2025-15366

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

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.004 (28.6th percentile) — read the EPSS interpretation.

Affected products

Weakness classification (CWE)

References