Memory Consumption Denial of Service in Scrapy 1.4

python-scrapy Updated 02 Oct 2025

Summary

05/09/2017
N/A
No i
High
7.5

CVE-2017-14158: Scrapy 1.4 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... Affects python-scrapy versions < 5f69ec98f70e1e1e5f65fb36eb1cfb23d0be5b45. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Scrapy is a Python framework used for web scraping and crawling. It provides a set of tools and libraries for extracting data from websites. Scrapy allows developers to build scalable and efficient web scraping applications. However, Scrapy version 1.4 is vulnerable to a memory consumption denial of service attack.

Vulnerability Detail

The vulnerability, identified as CVE-2017-14158, allows remote attackers to cause a denial of service by consuming excessive memory. This occurs when large files are read into memory, and if these files are individually written to a slow storage resource in a separate thread. The issue arises due to the interaction between the dataReceived function in core/downloader/handlers/http11.py and S3FilesStore. An attacker can exploit this vulnerability to exhaust the memory resources of the affected system, leading to a denial of service condition.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. However, as a general best practice, it is recommended to implement rate limiting and resource usage monitoring to detect and mitigate excessive memory consumption. Additionally, monitoring the system's memory usage and promptly addressing any abnormal spikes can help prevent denial of service attacks.

Conclusion

Scrapy version 1.4 is vulnerable to a memory consumption denial of service attack. It is crucial to upgrade to a patched version and implement input validation and file size limitations to mitigate the risk. For further assistance on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-scrapy →

Share this vulnerability

FAQ

Scrapy is a Python framework used for web scraping and crawling. It provides a set of tools and libraries for extracting data from websites.

The vulnerability allows remote attackers to cause a denial of service by consuming excessive memory. This can lead to system instability and unavailability.

To fix this vulnerability, upgrade Scrapy to a version that includes the patch for CVE-2017-14158. Additionally, implement input validation and limit the size of files being processed.

There are no specific workarounds provided for this vulnerability. However, implementing rate limiting and resource usage monitoring can help detect and mitigate excessive memory consumption.

For more information about CVE-2017-14158, refer to the CVE database or the provided source link.

Related vulnerabilities

Recent vulnerabilities recorded for python-scrapy.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback