Skip to content
Heist/ feed
Back to feed
HighFix available

python-httplib2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-21240

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.

Products
python-httplib2
Affected versions
Not specified
Fixed versions
0.20.2-1
CVEs
CVE-2021-21240
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:20 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-21240

core-osv · Original source

Published 8 Feb 2021, 20:15 UTC

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.

osv:DEBIAN-CVE-2021-21240

python-httplib2

Fixed versions: 0.20.2-1

python-httplib2

Fixed versions: 0.20.2-1

python-httplib2

Fixed versions: 0.20.2-1

Complete source record
{
  "id": "7969827f06d5facec7ced1be69dabc06edb72d43a37d9797a68e44b1b5cf62c1",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-21240",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-21240",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-21240",
    "products": [
      {
        "name": {
          "value": "python-httplib2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.20.2-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-httplib2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.20.2-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-httplib2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.20.2-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-21240",
      "aliases": [
        "DEBIAN-CVE-2021-21240"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.20.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-httplib2",
            "purl": "pkg:deb/debian/python-httplib2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21240.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.20.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-httplib2",
            "purl": "pkg:deb/debian/python-httplib2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21240.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.20.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-httplib2",
            "purl": "pkg:deb/debian/python-httplib2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21240.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:11.864275263Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-21240"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-21240"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-21240",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 420773,
  "published_at": "2021-02-08T20:15:12.197+00:00"
}