BIT-libpython-2020-26116: CRLF Injection
http.client in Python 3.x before 3.5.10, 3.6.x before 3.6.12, 3.7.x before 3.7.9, and 3.8.x before 3.8.5 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of HTTPConnection.request.
Affected Software
Event History
Frequently Asked Questions
What applications are exposed to this issue?
Applications using Python's http.client are exposed when untrusted input can control the HTTP request method passed as the first argument to HTTPConnection.request. The affected Python releases are 3.5 before 3.5.10, 3.6 before 3.6.12, 3.7 before 3.7.9, and 3.8 before 3.8.5.
Does exploitation require authentication or user interaction?
No. The reported vector is network-accessible, requires low attack complexity, and requires neither privileges nor user interaction. An attacker must be able to supply CR and LF control characters through the request-method input.
How can I determine whether my deployment is affected?
Check the Python version used by the application and identify uses of HTTPConnection.request where the request method may be influenced by untrusted input. Versions earlier than the listed fixed releases are affected under that input condition.