Skip to main content
← All vulnerabilities
CVE-2025-15366

IMAP command injection in user-controlled commands

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.15, 3.14.7, 3.15.0a6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.13.15; From 3.14.0 · fixed in 3.14.7; From 3.15.0a1 · fixed in 3.15.0a6

References 8

GitHub · python/cpython

mail.python.org