{"id":"CVE-2020-8162","aliases":["CVE-2020-8162","GHSA-m42x-37p3-fv5w"],"related":[],"kind":"vulnerability","state":"published","title":"Circumvention of file size limits in ActiveStorage","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nVersions Affected:  rails < 5.2.4.2, rails < 6.0.3.1\nNot affected:       Applications that do not use the direct upload functionality of the ActiveStorage S3 adapter.\nFixed Versions:     rails >= 5.2.4.3, rails >= 6.0.3.1\n\nImpact\n------\n\nUtilizing 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.\n\nWorkarounds\n-----------\n\nThis is a low-severity security issue. As such, no workaround is necessarily until such time as the application can be upgraded.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se presenta una aplicación del lado del cliente de una vulnerabilidad de seguridad del lado del servidor en rails versiones anteriores a 5.2.4.2 y rails versiones anteriores a 6.0.3.1 El adaptador S3 de ActiveStorage que permite a un usuario final modificar el Content-Length de una carga directa de archivos sin pasar por los límites de carga","source":"nvd"}],"published":"2020-05-26T15:09:48.000Z","modified":"2026-06-17T03:25:58.070Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-434","CWE-602"],"affected":[{"ranges":[{"version":"rails >= 5.2.4.3, rails >= 6.0.3.1","status":"affected"}],"product":"https://github.com/rails/rails","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.2.4.3"}],"ecosystem":"RubyGems","package":"activestorage","purl":"pkg:gem/activestorage","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.3.1"}],"ecosystem":"RubyGems","package":"activestorage","purl":"pkg:gem/activestorage","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.4.2"},{"status":"affected","introduced":"6.0.0","fixed":"6.0.3.1"}],"vendor":"rubyonrails","product":"rails","cpe":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/789579","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ","tags":["mailing-list","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2020/dsa-4766","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8162","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/aws/aws-sdk-ruby/issues/2098","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/aws/aws-sdk-ruby","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2020-8162.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!topic/rubyonrails-security/PjU3946mreQ","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-8162","url":"https://www.cve.org/CVERecord?id=CVE-2020-8162","licence":"CVE Terms of Use","modified":"2024-08-04T09:48:25.603Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m42x-37p3-fv5w","url":"https://github.com/advisories/GHSA-m42x-37p3-fv5w","licence":"CC-BY-4.0","modified":"2024-02-22T05:37:26.373Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-8162","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8162","licence":"Public domain","modified":"2026-06-17T03:25:58.070Z"}],"updatedAt":"2026-11-25T22:57:53.046Z","epss":{"score":0.03028,"percentile":0.87834,"date":"2026-12-01T12:00:22.000Z"}}