{"id":"UBUNTU-CVE-2021-21240","details":"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.","modified":"2026-07-14T16:06:21.316432991Z","published":"2021-02-08T20:15:00Z","upstream":["CVE-2021-21240"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21240"},{"type":"REPORT","url":"https://github.com/httplib2/httplib2/pull/182"},{"type":"REPORT","url":"https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m"},{"type":"REPORT","url":"https://pypi.org/project/httplib2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21240"}],"affected":[{"package":{"name":"python-httplib2","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/python-httplib2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-2","0.8-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-httplib2","binary_version":"0.8-2build1"},{"binary_name":"python3-httplib2","binary_version":"0.8-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21240.json"}},{"package":{"name":"python-httplib2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-httplib2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9+dfsg-2","0.9.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-httplib2","binary_version":"0.9.1+dfsg-1"},{"binary_name":"python3-httplib2","binary_version":"0.9.1+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21240.json"}},{"package":{"name":"python-httplib2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-httplib2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.2+dfsg-1","0.9.2+dfsg-1ubuntu0.1","0.9.2+dfsg-1ubuntu0.2","0.9.2+dfsg-1ubuntu0.3"],"ecosystem_specific":{"binaries":[{"binary_name":"python-httplib2","binary_version":"0.9.2+dfsg-1ubuntu0.3"},{"binary_name":"python3-httplib2","binary_version":"0.9.2+dfsg-1ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21240.json"}},{"package":{"name":"python-httplib2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-httplib2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.3-2","0.11.3-2build1","0.14.0-1","0.14.0-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-httplib2","binary_version":"0.14.0-1ubuntu1"},{"binary_name":"python3-httplib2","binary_version":"0.14.0-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21240.json"}},{"package":{"name":"python-httplib2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-httplib2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18.1-3ubuntu1","0.20.2-2","0.20.2-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-httplib2","binary_version":"0.20.2-2ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21240.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}