BIT-libpython-2020-26116: CRLF Injection

Published Sep 27, 2020
·
Updated

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

1 affected component
Python Software Foundation Python http.client<3.5.10, <3.6.12, <3.7.9, <3.8.5

Event History

Sep 27, 2020
CVE Published
via OSV·04:15 AM
Data Sourced
via OSV·04:15 AM
DescriptionSeverity

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203