CVE-2021-21240
Httplib2 Project Httplib2 vulnerability
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 products
Httplib2. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Httplib2 Project Httplib2 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc · Patch
- github.com/httplib2/httplib2/pull/182 · Patch
- github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m · Exploit
- pypi.org/project/httplib2 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21240
- github.com/pypa/advisory-database/tree/main/vulns/httplib2/PYSEC-2021-16.yaml
- github.com/advisories/GHSA-93xj-8mrv-444m
- nvd.nist.gov/vuln/detail/CVE-2021-21240
- cve.org/CVERecord?id=CVE-2021-21240
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.