# CVE-2020-8162: Circumvention of file size limits in ActiveStorage

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.03%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-05-26T15:09:48.000Z
- Modified: 2026-06-17T03:25:58.070Z
- Also known as: GHSA-m42x-37p3-fv5w
- Weaknesses: CWE-434, CWE-602
- Assigned by: hackerone

## Description

A client side enforcement of server side security vulnerability exists in rails < 5.2.4.2 and rails < 6.0.3.1 ActiveStorage's S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user bypassing upload limits.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: rails >= 5.2.4.3, rails >= 6.0.3.1
- activestorage (RubyGems): from 5.0.0 before 5.2.4.3; from 6.0.0 before 6.0.3.1
- rubyonrails rails: before 5.2.4.2; from 6.0.0 before 6.0.3.1
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://hackerone.com/reports/789579> (exploit, third-party-advisory, web)
- <https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ> (mailing-list, patch, third-party-advisory, web)
- <https://www.debian.org/security/2020/dsa-4766> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8162> (advisory)
- <https://github.com/aws/aws-sdk-ruby/issues/2098> (web)
- <https://github.com/aws/aws-sdk-ruby> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2020-8162.yml> (web)
- <https://groups.google.com/forum/#!topic/rubyonrails-security/PjU3946mreQ> (web)

## Sources

- CVE List: [CVE-2020-8162](https://www.cve.org/CVERecord?id=CVE-2020-8162), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m42x-37p3-fv5w](https://github.com/advisories/GHSA-m42x-37p3-fv5w), CC-BY-4.0, modified 2024-02-22
- NVD: [CVE-2020-8162](https://nvd.nist.gov/vuln/detail/CVE-2020-8162), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8162 · Whole record: https://cve.day/CVE-2020-8162.json · Rebuilt by cve.day 2026-11-25T22:57:53.046Z
