7.2high
http.client: HTTP Header Injection in the HTTP method
- Severity
- 7.2high CVSS:3.1 by NVD
- Exploit likelihood
- 6.36% (higher than 93% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- PSF-2020-5BIT-LIBPYTHON-2020-26116BIT-PYTHON-2020-26116BIT-PYTHON-MIN-2020-26116
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| https://github.com/python/cpython | before 27b811057ff5e93b68798e278c88358123efdc71, before 524b8de630036a29ca340bc2ae6fd6dc7dda8f40, before 668d321476d974c4f51476b33aaca870272523bf, before 8ca8a2e8fb068863c1138f07e3098478ef8be12e, before ca75fec1ed358f7324272608ca952b2d8226d11a, before f02de961b9f19a5db0ead56305fe0057a78787ae | Python Software Foundation |
| python python | from 3.0.0 before 3.5.10, from 3.6.0 before 3.6.12, from 3.7.0 before 3.7.9, from 3.8.0 before 3.8.5 | NVD |
| fedoraproject fedora | 31, 32, 33 | NVD |
| canonical ubuntu_linux | 12.04, 14.04, 16.04, 18.04 | NVD |
| netapp solidfire | Not specified | NVD |
| netapp hci_storage_node | Not specified | NVD |
| debian debian_linux | 9.0 | NVD |
| oracle zfs_storage_appliance_kit | 8.8 | NVD |
| opensuse leap | 15.1 | NVD |
| libpython (Bitnami) | from 3.0.0 before 3.5.10, from 3.6.0 before 3.6.12, from 3.7.0 before 3.7.9, from 3.8.0 before 3.8.5 | Bitnami Vulnerability Database |
| python (Bitnami) | from 3.0.0 before 3.5.10, from 3.6.0 before 3.6.12, from 3.7.0 before 3.7.9, from 3.8.0 before 3.8.5 | Bitnami Vulnerability Database |
| python-min (Bitnami) | from 3.0.0 before 3.5.10, from 3.6.0 before 3.6.12, from 3.7.0 before 3.7.9, from 3.8.0 before 3.8.5 | Bitnami Vulnerability Database |
All scores
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
http.client en Python 3.x antes de la versión 3.5.10, 3.6.x antes de la versión 3.6.12, 3.7.x antes de la versión 3.7.9, y 3.8.x antes de la versión 3.8.5 permite la inyección de CRLF si el atacante controla el método de petición HTTP, como se demuestra insertando caracteres de control CR y LF en el primer argumento de HTTPConnection.request
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26116 changed 2026-10-14 | CVE Terms of Use |
| Python Software Foundation | PSF-2020-5 changed 2025-10-09 | CC-BY-4.0 |
| NVD | CVE-2020-26116 changed 2026-10-14 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2020-26116 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2020-26116 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2020-26116 changed 2026-09-08 | Apache-2.0 |