CVE-2017-7235: Cfscrape Cfscrape Improper Input Validation Vulnerability Vulnerability
HIGHCVE-2017-7235 is a HIGH (CVSS 8.8) cfscrape improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Cfscrape libraries in the PyPI ecosystem. The issue involves cfscrape improper input validation vulnerability. Remediation is available by upgrading affected packages to version 1.8.0.
CVE-2017-7235 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-7235
To remediate this vulnerability, upgrade all affected Cfscrape 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 cfscrape>=1.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show cfscrape
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2017-7235, inspect your installed packages using pip:
pip show cfscrape
Analyze the terminal output to locate any version of Cfscrape in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0), your application is affected.
Note: The pip show cfscrape 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 Cfscrape, 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-2017-7235 Affected Cfscrape Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cfscrape
|
PyPI |
≥ 1.6.6
< 1.8.0
|
1.8.0
|
References
Frequently Asked Questions
What is CVE-2017-7235?
Which Cfscrape versions are affected?
What version fixes CVE-2017-7235?
Is cfscrape affected?
What is the CVSS score of CVE-2017-7235?
What CWE is associated with CVE-2017-7235?
How can I check PyPI dependencies for CVE-2017-7235?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5mc5-5j6c-qmf9",
"modified" : "2024-09-13T14:35:01Z",
"published" : "2018-07-13T16:01:01Z",
"aliases" : [ "CVE-2017-7235" ],
"summary" : "cfscrape Improper Input Validation vulnerability",
"details" : "An issue was discovered in cloudflare-scrape 1.6.6 through 1.7.1. A malicious website owner could craft a page that executes arbitrary Python code against any cfscrape user who scrapes that website. This is fixed in 1.8.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "cfscrape"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6.6"
}, {
"fixed" : "1.8.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.7.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-7235"
}, {
"type" : "WEB",
"url" : "https://github.com/Anorov/cloudflare-scrape/issues/97"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Anorov/cloudflare-scrape"
}, {
"type" : "WEB",
"url" : "https://github.com/Anorov/cloudflare-scrape/releases/tag/1.8.0"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5mc5-5j6c-qmf9"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/cfscrape/PYSEC-2017-7.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20170701161512/http://www.securityfocus.com/bid/97191"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:16:39Z",
"nvd_published_at" : null
}
}