CVE-2013-2037: Httplib2 Httplib2 Incorrectly Checks SSL Certificate Vulnerability

MODERATE
Advisory Identifier: GHSA-q48q-77qv-cf9p
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2013-2037 is a MODERATE (CVSS 7.5) httplib2 incorrectly checks ssl certificate vulnerability (CWE-20: Improper Input Validation) affecting Httplib2 libraries in the PyPI ecosystem. The issue involves httplib2 incorrectly checks ssl certificate. Remediation is available by upgrading affected packages to version 0.10.1.

CVE-2013-2037 at a Glance

CVE Identifier CVE-2013-2037
GHSA Identifier GHSA-q48q-77qv-cf9p
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Httplib2
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2013-2037

To remediate this vulnerability, upgrade all affected Httplib2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

httplib2 fixed: 0.10.1
pip install httplib2>=0.10.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show httplib2

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2013-2037, inspect your installed packages using pip:

pip show httplib2

Analyze the terminal output to locate any version of Httplib2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.1), your application is affected.

Note: The pip show httplib2 command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Httplib2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

httplib2 prior to version 0.10.1, after an initial connection is made, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

CVE-2013-2037 Affected Httplib2 Versions

1 component(s)
Fixed Versions:
0.10.1
Product / Package Ecosystem Affected Versions Fixed Version
httplib2
PyPI
< 0.10.1
0.10.1

References

Frequently Asked Questions

What is CVE-2013-2037?
CVE-2013-2037 is a security vulnerability in Httplib2 involving httplib2 incorrectly checks SSL certificate under CWE-20: Improper Input Validation.
Which Httplib2 versions are affected?
Affected versions include releases prior to 0.10.1 across affected packages: httplib2.
What version fixes CVE-2013-2037?
Upgrading to 0.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is httplib2 affected?
Yes, httplib2 is affected in releases prior to 0.10.1. Upgrade your dependency to 0.10.1 or later.
What is the CVSS score of CVE-2013-2037?
CVE-2013-2037 has a CVSS v3.1 base score of 7.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2013-2037?
CVE-2013-2037 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2013-2037?
Run the dependency tree command: 'pip show httplib2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q48q-77qv-cf9p",
  "modified" : "2024-09-23T16:42:53Z",
  "published" : "2022-05-14T01:52:01Z",
  "aliases" : [ "CVE-2013-2037" ],
  "summary" : "httplib2 incorrectly checks SSL certificate",
  "details" : "httplib2 prior to version 0.10.1, after an initial connection is made, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "httplib2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2037"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/httplib2/httplib2/issues/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/httplib2/httplib2/commit/40cbdcc8586f2292fa0e76a3e8c012f0cc9ed919"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/httplib2/+bug/1175272"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/httplib2/httplib2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/httplib2/PYSEC-2014-81.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228052625/http://www.securityfocus.com/bid/52179"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706602"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/httplib2/issues/detail?id=282"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q2/257"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1948-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T11:40:26Z",
    "nvd_published_at" : "2014-01-18T21:55:00Z"
  }
}