CVE-2013-2037: Httplib2 Httplib2 Incorrectly Checks SSL Certificate Vulnerability
MODERATECVE-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
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).
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.
pip install httplib2>=0.10.1
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
CVE-2013-2037 Affected Httplib2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
httplib2
|
PyPI |
< 0.10.1
|
0.10.1
|
References
Frequently Asked Questions
What is CVE-2013-2037?
Which Httplib2 versions are affected?
What version fixes CVE-2013-2037?
Is httplib2 affected?
What is the CVSS score of CVE-2013-2037?
What CWE is associated with CVE-2013-2037?
How can I check PyPI dependencies for CVE-2013-2037?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}