Vulnerabilities in pkg:pypi/restkit
PACKAGECVE-2015-2674 is a MODERATE (CVSS 5.9) restkit does not validate tls vulnerability (CWE-295: Improper Certificate Validation) affecting Restkit libraries in the PyPI ecosystem. The issue involves restkit does not validate tls certificates. Remediation is available in the latest vendor maintenance releases.
pkg:pypi/restkit
Vulnerability advisories affecting package pkg:pypi/restkit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p9cv-hrxr-fxx8 | CVE-2015-2674 | MODERATE | Restkit Does Not Validate TLS certificates |
CVE-2015-2674 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2015-2674
To remediate this vulnerability, upgrade all affected Restkit 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 restkit>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show restkit
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2015-2674, inspect your installed packages using pip:
pip show restkit
Analyze the terminal output to locate any version of Restkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show restkit command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Restkit, 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-2015-2674 Affected Restkit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
restkit
|
PyPI |
≤ 4.2.2
|
|
References
Frequently Asked Questions
What is CVE-2015-2674?
Which Restkit versions are affected?
What version fixes CVE-2015-2674?
Is restkit affected?
What is the CVSS score of CVE-2015-2674?
What CWE is associated with CVE-2015-2674?
How can I check PyPI dependencies for CVE-2015-2674?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p9cv-hrxr-fxx8",
"modified" : "2024-10-21T21:51:08Z",
"published" : "2022-05-17T01:59:05Z",
"aliases" : [ "CVE-2015-2674" ],
"summary" : "Restkit Does Not Validate TLS certificates",
"details" : "Restkit allows man-in-the-middle attackers to spoof TLS servers by leveraging use of the `ssl.wrap_socket` function in Python with the default CERT_NONE value for the cert_reqs argument.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "restkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-2674"
}, {
"type" : "WEB",
"url" : "https://github.com/benoitc/restkit/issues/140"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1202837"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/benoitc/restkit"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/restkit/PYSEC-2017-69.yaml"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/03/23/7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-03T21:27:58Z",
"nvd_published_at" : "2017-08-09T18:29:00Z"
}
}