Arbitrary file upload in Rubyonrails Rails
CVE-2020-8162
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.030, 87.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rubyonrails Rails
- Debian Linux — versions 10.0
- Https://github.com/rails/rails — versions rails >= 5.2.4.3, rails >= 6.0.3.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- usutani/study-turbolinks-link (last pushed 2023-03-08): Known security vulnerabilities detected. CVE-2022-21831 Critical severity CVE-2025-24293 Critical severity CVE-2020-8162 High severity CVE-2024-26144 Moderate severity
Also mentioned in 2 other repositories (20142995/nuclei-templates, cyb3r-w0lf/nuclei-template-collection). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- hackerone.com/reports/789579 (Exploit, Third Party Advisory)
- groups.google.com/g/rubyonrails-security/c/PjU3946mreQ (Patch, Mailing List, Third Party Advisory)
- DSA-4766 (vendor-advisory, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.