CVEfocus › CVE database › CVE-2021-21240

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

CVSS 7.5 HighEPSS 3.7% (higher than 90% of CVEs)Published 2021-02-08Updated 2024-08-03Assigner: GitHub_M

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.

CWE-400

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

15Fixed
6Fix pending
44Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04python-httplib2Not affected
vulnerable_code_not_present
Ubuntu 25.10python-httplib2Not affected
vulnerable_code_not_present
Ubuntu 24.04python-httplib2Not affected
vulnerable_code_not_present
Ubuntu 22.04python-httplib2Fix pendingUBUNTU-CVE-2021-21240
Ubuntu 20.04python-httplib2Fix pendingUBUNTU-CVE-2021-21240
Ubuntu 18.04python-httplib2Fix pendingUBUNTU-CVE-2021-21240
Ubuntu 16.04python-httplib2Fix pendingUBUNTU-CVE-2021-21240
Ubuntu 14.04python-httplib2Fix pendingUBUNTU-CVE-2021-21240
Debian 14python-httplib2Fixed0.20.2-1DEBIAN-CVE-2021-21240
Debian 13python-httplib2Fixed0.20.2-1DEBIAN-CVE-2021-21240
Debian 12python-httplib2Fixed0.20.2-1DEBIAN-CVE-2021-21240
Red Hat Enterprise Linux 9python-httplib2Not affected
Red Hat Enterprise Linux 8python3-httplib2Fix pending
Fix deferred
Red Hat Enterprise Linux 7fence-agentsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-aliyunWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-allWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-amt-wsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-apcWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-apc-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-awsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-azure-armWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-bladecenterWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-brocadeWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-cisco-mdsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-cisco-ucsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-computeWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-drac5Will not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-eaton-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-emersonWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-epsWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-gceWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-heuristics-pingWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-hpbladeWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ibmbladeWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ifmibWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ilo-moonshotWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ilo-mpWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ilo-sshWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ilo2Will not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-intelmodularWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ipduWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-ipmilanWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-kdumpWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-lparWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-mpathWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-redfishWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-rhevmWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-rsaWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-rsbWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-sbdWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-scsiWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-virshWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-vmware-restWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-vmware-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-wtiWill not fix
Out of support scope
Red Hat Enterprise Linux 7fence-agents-zvmWill not fix
Out of support scope
Alpine Linux 3.24py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.23py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.22py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.21py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.20py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.19py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.18py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.17py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.16py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.15py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
Alpine Linux 3.14py3-httplib2Fixed0.19.0-r0ALPINE-CVE-2021-21240
PyPI libraryhttplib2Fixed0.19.0GHSA-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.

References

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.