{"id":"CVE-2021-21240","published":"2021-02-08T19:45:19Z","modified":"2024-08-03T18:09:14Z","title":"Regular Expression Denial of Service in httplib2","vendor":"httplib2","product":"httplib2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0367,"percentile":0.8992,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/httplib2/httplib2/pull/182","tags":["x_refsource_MISC"]},{"url":"https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc","tags":["x_refsource_MISC"]},{"url":"https://pypi.org/project/httplib2","tags":["x_refsource_MISC"]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":17.98},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"httplib2","affectedVersions":[{"vendor":"httplib2","product":"httplib2","versions":["< 0.19.0"]}],"affected":[{"ecosystem":"PyPI","package":"httplib2","vulnerableRanges":["<0.19.0"],"patched":["0.19.0"],"from":["GHSA-93xj-8mrv-444m","PYSEC-2021-16"],"provenance":"source"}],"summary":{"text":"The httplib2 Python HTTP client library, prior to version 0.19.0, has a flaw in how it parses the \"www-authenticate\" response header, which is handled inefficiently. An attacker controlling a malicious server that a client connects to can send a long series of non-breaking space characters in that header, causing the client to burn CPU while parsing and resulting in denial of service, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:22Z"},"euvd":{"id":"EUVD-2021-0098","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-httplib2-cve-2013-2037","parents":[{"from":"CVE-2013-2037","to":"CVE-2021-21240","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["python2/httplib2/__init__.py"],"commits":["https://github.com/httplib2/httplib2/commit/40cbdcc8586f2292fa0e76a3e8c012f0cc9ed919","https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc"],"basis":"shared function","functions":["_ssl_wrap_socket","connect"]}]},{"from":"CVE-2020-11078","to":"CVE-2021-21240","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["python2/httplib2/__init__.py","python3/httplib2/__init__.py"],"commits":["https://github.com/httplib2/httplib2/commit/a1457cc31f3206cf691d11d2bf34e98865873e9e","https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc"],"basis":"shared function","functions":["request"]}]}]}}