Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-eps3-2rkz-r3gf
Summary
Scrapy decompression bomb vulnerability
### Impact

Scrapy limits allowed response sizes by default through the [`DOWNLOAD_MAXSIZE`](https://docs.scrapy.org/en/latest/topics/settings.html#download-maxsize) and [`DOWNLOAD_WARNSIZE`](https://docs.scrapy.org/en/latest/topics/settings.html#download-warnsize) settings.

However, those limits were only being enforced during the download of the raw, usually-compressed response bodies, and not during decompression, making Scrapy vulnerable to [decompression bombs](https://cwe.mitre.org/data/definitions/409.html).

A malicious website being scraped could send a small response that, on decompression, could exhaust the memory available to the Scrapy process, potentially affecting any other process sharing that memory, and affecting disk usage in case of uncompressed response caching.

### Patches

Upgrade to Scrapy 2.11.1.

If you are using Scrapy 1.8 or a lower version, and upgrading to Scrapy 2.11.1 is not an option, you may upgrade to Scrapy 1.8.4 instead.

### Workarounds

There is no easy workaround.

Disabling HTTP decompression altogether is impractical, as HTTP compression is a rather common practice.

However, it is technically possible to manually backport the 2.11.1 or 1.8.4 fix, replacing the corresponding components of an unpatched version of Scrapy with patched versions copied into your own code.

### Acknowledgements

This security issue was reported by @dmandefy [through huntr.com](https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb/).
Aliases
0
alias GHSA-7j7m-v7m3-jqm7
1
alias GMS-2024-327
Fixed_packages
0
url pkg:pypi/scrapy@1.8.4
purl pkg:pypi/scrapy@1.8.4
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-atnw-pnvj-zkhp
1
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@1.8.4
1
url pkg:pypi/scrapy@2.11.1
purl pkg:pypi/scrapy@2.11.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.11.1
Affected_packages
0
url pkg:pypi/scrapy@2.0.0
purl pkg:pypi/scrapy@2.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-4q2x-51p4-eygm
1
vulnerability VCID-4yce-5hbd-4kbx
2
vulnerability VCID-atnw-pnvj-zkhp
3
vulnerability VCID-eps3-2rkz-r3gf
4
vulnerability VCID-jrh5-kjau-xkar
5
vulnerability VCID-meje-5upu-mqen
6
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.0.0
References
0
reference_url https://docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14
reference_id
reference_type
scores
url https://docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14
1
reference_url https://github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5
2
reference_url https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
3
reference_url https://github.com/advisories/GHSA-7j7m-v7m3-jqm7
reference_id GHSA-7j7m-v7m3-jqm7
reference_type
scores
url https://github.com/advisories/GHSA-7j7m-v7m3-jqm7
4
reference_url https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7
reference_id GHSA-7j7m-v7m3-jqm7
reference_type
scores
url https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7
Weaknesses
0
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
Exploits
Severity_range_scorenull
Exploitability0.5
Weighted_severity0.0
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-eps3-2rkz-r3gf