PyPI: scrapy
CVE-2017-14158
Safety vulnerability ID: SFTY-20170905-95075
Safety legacy ID: pyup.io-54672
Scrapy is vulnerable to CVE-2017-14158: Scrapy allows remote attackers to cause a denial of service (memory consumption) via large files because arbitrarily many files are read into memory, which is especially problematic if the files are then individually written in a separate thread to a slow storage resource, as demonstrated by interaction between dataReceived (in core/downloader/handlers/http11.py) and S3FilesStore.
Overview
Scrapy denial of service vulnerability
Advisory
Scrapy is vulnerable to CVE-2017-14158: Scrapy allows remote attackers to cause a denial of service (memory consumption) via large files because arbitrarily many files are read into memory, which is especially problematic if the files are then individually written in a separate thread to a slow storage resource, as demonstrated by interaction between dataReceived (in core/downloader/handlers/http11.py) and S3FilesStore.
How to Fix
We recommend updating scrapy to the latest non-vulnerable version.
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20170905-95075/CVE-2017-14158
- https://nvd.nist.gov/vuln/detail/CVE-2017-14158
- https://github.com/scrapy/scrapy/issues/482
- http://blog.csdn.net/wangtua/article/details/75228728
- https://github.com/pypa/advisory-database/blob/8b7a4d62a95e8f605e5dfb4e0b4f299e6403dc12/vulns/scrapy/PYSEC-2017-83.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2017-83.yaml
- https://github.com/advisories/GHSA-h7wm-ph43-c39p
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
