CVE-2021-21240
No exploitation reported by the sources we read.
- Published2021-02-08
- Fixed in0.19.0
- WeaknessCWE-400
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-02-0820:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.19 | < 0.19.0 | 0.19.0 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- py3-httplib2CleanStartall versions · fixed in 0.19.0-r0and 1 other package
- py3-httplib2Alpine:v3.25all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.24all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.23all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.22all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.21all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.20all versions · fixed in 0.19.0-r0
- py3-httplib2Alpine:v3.19all versions · fixed in 0.19.0-r0
36 more package ranges on OSV.dev
Vendor advisories
python-httplib2: Regular expression denial of service via malicious header
python-httplib2.src as a component of Red Hat Ceph Storage 2 · fence-agents-aliyun as a component of Red Hat Enterprise Linux 7 · fence-agents-all as a component of Red Hat Enterprise Linux 7 · +47 more
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1.6 (python-httplib2) security update
Fix
- Update Httplib2 project httplib2 to 0.19.0
- Vendor fix Red Hat Product Security RHSA-2021:2116 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2021:2116 · 2 productsUse strict mode to parse WWW-Authenticate headers. This can be done by setting `httplib2.USE_WWW_AUTH_STRICT_PARSING = True`. Please note, however, that strict mode might lead to bad results in case of ill-formed header values.
- No fix available, says the vendor Red Hat Product Security CVE-2021-21240 · 3 productsFix deferred
- No fix planned, says the vendor Red Hat Product Security CVE-2021-21240 · 46 productsOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2021-21240 · 1 productWill not fix
Advisories and patches
- github.comPatch
- github.comPatch
- github.comMitigation
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.17.5known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CNAweakness (CWE)CWE-400known since 2026-10-23
- FIRST EPSSEPSS score3.7 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2021-02-08
Identifiers
- EUVD-2021-0098same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-93xj-8mrv-444msame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2021-16same flawPyPA Advisory Database · CC-BY-4.0
- DLA-4747-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0122advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1126advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:0772-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:0796-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:1806-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11231-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14141-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:11203-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:2116advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2021:1637-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1779-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1806-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1807-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1808-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2021-02-08
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-93xj-8mrv-444m
Frequently asked questions
What is CVE-2021-21240?
Is CVE-2021-21240 actively exploited?
What is the CVSS score for CVE-2021-21240?
Running httplib2? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-93xj-8mrv-444m
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0