cve.bz

CVE-2021-21240 httplib2 project httplib2: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 3.7%Fix available

High (7.5) in httplib2 project httplib2. EPSS 3.7% estimated probability of exploitation activity in the next 30 days. Fixed in httplib2 0.19.0.

On this page
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.

Severity

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
EPSS
3.7% (unchanged from 3.7% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21240 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21240?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21240?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21240 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
httplib2_project:httplib2before 0.19.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-93xj-8mrv-444mPyPIhttplib2<0.19.00.19.0
PYSEC-2021-16PyPIhttplib2<0.19.00.19.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-httplib20.18.1-3+deb11u1DLA-4747-1
Debian12, 13, 14python-httplib20.20.2-1DEBIAN-CVE-2021-21240
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 2 morepython-httplib2no fix listedUBUNTU-CVE-2021-21240
Red Hatopenstack:16.1::el8python-httplib2, python3-httplib20:0.13.1-2.el8ostRHSA-2021:2116
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-httplib20.19.0-7.3.1SUSE-SU-2021:1808-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 1 morepython-httplib20.19.0-3.3.1SUSE-SU-2021:1806-1
SUSELinux Enterprise Module for Public Cloud 12, OpenStack Cloud 7python-httplib20.19.0-7.7.1SUSE-SU-2021:1807-1
SUSELinux Enterprise Module for Public Cloud 15python-httplib20.19.0-1.8.1SUSE-SU-2021:1637-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-httplib20.19.0-8.3.4SUSE-SU-2021:1779-1
SUSEPackage Hub 15 SP2python-httplib20.19.0-bp152.3.3.1openSUSE-SU-2021:0796-1
openSUSELeap 15.2python-httplib20.19.0-lp152.6.3.1openSUSE-SU-2021:0772-1
openSUSELeap 15.3python-httplib20.19.0-3.3.1openSUSE-SU-2021:1806-1
openSUSETumbleweedpython-httplib20.19.1-1.2openSUSE-SU-2024:11231-1
openSUSETumbleweedpython-httplib20.22.0-4.5openSUSE-SU-2024:14141-1
openSUSETumbleweedpython-httplib20.32.0-1.1openSUSE-SU-2026:11203-1
Alpinev3.14, v3.15, v3.16 and 8 morepy3-httplib20.19.0-r0ALPINE-CVE-2021-21240

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been rated as having a security impact of Low, because it requires a malicious or compromised server in order to be exploited, and it only affects the HTTP client. In Red Hat OpenStack Platform 13, because the flaw has a lower impact and the fix would require a substantial amount of development, no update will be provided at this time for the RHOSP 13 python-httplib2 package.

Red Hat's mitigation

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

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.1python-httplib2-0:0.13.1-2.el8ostFixed 2021-05-26RHSA-2021:2116
Red Hat Ceph Storage 2python-httplib2Out of support scope
Red Hat Enterprise Linux 7fence-agentsOut of support scope
Red Hat Enterprise Linux 8python-httplib2Fix deferred
Red Hat Enterprise Linux 9python-httplib2Not affected
Red Hat OpenStack Platform 10 (Newton)python-httplib2Out of support scope
Red Hat OpenStack Platform 13 (Queens)python-httplib2Will not fix
Red Hat Storage 3python-httplib2Fix deferred
Red Hat Update Infrastructure 3 for Cloud Providerspython-httplib2Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21240.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON