Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Problem types
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Product status
Any version before 3.15.0a6
Credits
Omar M. Hasan
References
github.com/python/cpython/issues/143921
github.com/python/cpython/pull/143922
mail.python.org/.../thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/
github.com/...ommit/6262704b134db2a4ba12e85ecfbd968534f28b45