CVE-2021-21240Regular Expression Denial of Service in httplib2
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | python-httplib2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | python-httplib2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | python-httplib2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | python-httplib2 | Fix pending | UBUNTU-CVE-2021-21240 | |
| Ubuntu 20.04 | python-httplib2 | Fix pending | UBUNTU-CVE-2021-21240 | |
| Ubuntu 18.04 | python-httplib2 | Fix pending | UBUNTU-CVE-2021-21240 | |
| Ubuntu 16.04 | python-httplib2 | Fix pending | UBUNTU-CVE-2021-21240 | |
| Ubuntu 14.04 | python-httplib2 | Fix pending | UBUNTU-CVE-2021-21240 | |
| Debian 14 | python-httplib2 | Fixed | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| Debian 13 | python-httplib2 | Fixed | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| Debian 12 | python-httplib2 | Fixed | 0.20.2-1 | DEBIAN-CVE-2021-21240 |
| Red Hat Enterprise Linux 9 | python-httplib2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-httplib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | fence-agents | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-aliyun | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-all | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-amt-ws | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-apc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-apc-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-aws | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-azure-arm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-bladecenter | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-brocade | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-cisco-mds | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-cisco-ucs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-compute | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-drac5 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-eaton-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-emerson | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-eps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-gce | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-heuristics-ping | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-hpblade | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ibmblade | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ifmib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ilo-moonshot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ilo-mp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ilo-ssh | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ilo2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-intelmodular | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ipdu | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-ipmilan | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-kdump | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-lpar | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-mpath | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-redfish | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-rhevm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-rsa | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-rsb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-sbd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-scsi | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-virsh | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-vmware-rest | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-vmware-soap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-wti | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | fence-agents-zvm | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.23 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.22 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.21 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.20 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.19 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.18 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.17 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.16 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.15 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| Alpine Linux 3.14 | py3-httplib2 | Fixed | 0.19.0-r0 | ALPINE-CVE-2021-21240 |
| PyPI library | httplib2 | Fixed | 0.19.0 | GHSA-93xj-8mrv-444m |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- httplib2: affected: < 0.19.0
References
- https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m
- https://github.com/httplib2/httplib2/pull/182
- https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc
- https://pypi.org/project/httplib2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.