CVE-2020-26116
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
https://github.com/python/cpythonbefore 27b811057ff5e93b68798e278c88358123efdc71, before 524b8de630036a29ca340bc2ae6fd6dc7dda8f40, before 668d321476d974c4f51476b33aaca870272523bf, before 8ca8a2e8fb068863c1138f07e3098478ef8be12e, before ca75fec1ed358f7324272608ca952b2d8226d11a, before f02de961b9f19a5db0ead56305fe0057a78787aePython Software Foundation
python pythonfrom 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.5NVD
fedoraproject fedora31, 32, 33NVD
canonical ubuntu_linux12.04, 14.04, 16.04, 18.04NVD
netapp solidfireNot specifiedNVD
netapp hci_storage_nodeNot specifiedNVD
debian debian_linux9.0NVD
oracle zfs_storage_appliance_kit8.8NVD
opensuse leap15.1NVD
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.5Bitnami 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.5Bitnami Vulnerability Database

All scores

NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-74

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

https://python-security.readthedocs.io/vuln/http-header-injection-method.htmladvisory, patch, third-party-advisory
https://bugs.python.org/issue39603advisory, exploit, issue-tracking, patch, report, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BW4GCLQISJCOEGQNIMVUZDQMIY6RR6CC/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JWMAVY4T4257AZHTF2RZJKNJNSJFY24O/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OXI72HIHMXCQFWTULUXDG7VDA2BCYL4Y/vendor-advisory, web
https://usn.ubuntu.com/4581-1/advisory, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HDQ2THWU4GPV4Y5H5WW5PFMSWXL2CRFD/vendor-advisory, web
http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00027.htmladvisory, mailing-list, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QOX7DGMMWWL6POCRYGAUCISOLR2IG3XV/vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2020/11/msg00032.htmladvisory, mailing-list, third-party-advisory
https://security.gentoo.org/glsa/202101-18advisory, third-party-advisory, vendor-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmladvisory, patch, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2020-26116 changed 2026-10-14CVE Terms of Use
Python Software FoundationPSF-2020-5 changed 2025-10-09CC-BY-4.0
NVDCVE-2020-26116 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2020-26116 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2020-26116 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2020-26116 changed 2026-09-08Apache-2.0