Loading...
Skip to main content

CVE-2020-8162

HIGH

Circumvention of file size limits in ActiveStorage

Published May 26, 2020Updated February 22, 2024Source: osv

Summary

There is a vulnerability in ActiveStorage's S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user. Versions Affected: rails < 5.2.4.2, rails < 6.0.3.1 Not affected: Applications that do not use the direct upload functionality of the ActiveStorage S3 adapter. Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1 Impact ------ Utilizing this vulnerability, an attacker can control the Content-Length of an S3 direct upload URL without receiving a new signature from the server. This could be used to bypass controls in place on the server to limit upload size. Workarounds ----------- This is a low-severity security issue. As such, no workaround is necessarily until such time as the application can be upgraded.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activestorage to 6.0.3.1 or later
gem install activestorage -v 6.0.3.1
Bundler
Update activestorage to 5.2.4.3 or later
gem install activestorage -v 5.2.4.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
activestorage
rubygems
6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+6 more)6.0.3.1
activestorage
rubygems
5.2.0, 5.2.0.beta1, 5.2.0.beta2, 5.2.0.rc1 (+13 more)5.2.4.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Frequently Asked Questions

What is CVE-2020-8162?
Circumvention of file size limits in ActiveStorage This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2020-8162?
CVE-2020-8162 affects activestorage. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-8162 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-m42x-37p3-fv5w

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies