# CVE-2021-21240: Regular Expression Denial of Service in httplib2

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.67%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-08T19:41:59.000Z
- Modified: 2026-09-10T03:49:14.200Z
- Also known as: GHSA-93xj-8mrv-444m, PYSEC-2021-16
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- httplib2 httplib2: < 0.19.0
- httplib2 (PyPI): before 0.19.0; before bd9ee252c8f099608019709e22c0d705e98d26bc
- httplib2_project httplib2: before 0.19.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m> (exploit, advisory, mitigation, third-party-advisory, web)
- <https://github.com/httplib2/httplib2/pull/182> (patch, third-party-advisory, web)
- <https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc> (fix, patch, third-party-advisory, web)
- <https://pypi.org/project/httplib2> (package, product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21240> (advisory)
- <https://github.com/httplib2/httplib2> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/httplib2/PYSEC-2021-16.yaml> (web)

## Sources

- CVE List: [CVE-2021-21240](https://www.cve.org/CVERecord?id=CVE-2021-21240), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-93xj-8mrv-444m](https://github.com/advisories/GHSA-93xj-8mrv-444m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21240](https://nvd.nist.gov/vuln/detail/CVE-2021-21240), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-16](https://osv.dev/vulnerability/PYSEC-2021-16), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-21240 · Whole record: https://cve.day/CVE-2021-21240.json · Rebuilt by cve.day 2026-11-25T22:57:59.844Z
