PT-2021-6101 · Pypi+4 · Httplib2+4
Ben Caller
·
Published
2021-02-08
·
Updated
2026-03-21
·
CVE-2021-21240
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
httplib2 versions prior to 0.19.0
Description
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. The issue arises due to catastrophic backtracking in the vulnerable regular expression, leading to cubic complexity and significant processing delays.Recommendations
For versions prior to 0.19.0, update to version 0.19.0, which contains a new implementation of auth headers parsing using the pyparsing library.
As a temporary workaround, consider setting
httplib2.USE WWW AUTH STRICT PARSING to True to mitigate the issue.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Debian
Red Os
Suse
Httplib2