Vulnerability · Published Feb 8, 2021 · Assigned by GitHub_M
CVE-2021-21240Regular Expression Denial of Service in httplib2
High 7.5
In plain English
A high-severity uncontrolled resource consumption in httplib2 from httplib2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.7% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
httplib2 is a comprehensive HTTP client library for Python. In httplib2 before version 0.19.0, a malicious server which responds with long series of "\xa0" characters in the "www-authenticate" header may cause Denial of Service (CPU burn while parsing header) of the httplib2 client accessing said server. This is fixed in version 0.19.0 which contains a new implementation of auth headers parsing using the pyparsing library.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-httplib2 | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine:v3.21 | py3-httplib2 | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine:v3.22 | py3-httplib2 | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine:v3.23 | py3-httplib2 | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine:v3.24 | py3-httplib2 | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Debian:12 | python-httplib2 | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| Debian:13 | python-httplib2 | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| Debian:14 | python-httplib2 | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| PyPI | httplib2 | 0.19.0 | GHSA-93xj-8mrv-444m |
| PyPI | httplib2 | 0.19.0 | PYSEC-2021-16 |
| Ubuntu:22.04:LTS | python-httplib2 | no fix listed | UBUNTU-CVE-2021-21240 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m x_refsource_CONFIRM
- https://github.com/httplib2/httplib2/pull/182 x_refsource_MISC
- https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc x_refsource_MISC
- https://pypi.org/project/httplib2 x_refsource_MISC