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

High 7.5 Published Updated

Attackers can bypass upload limits in ActiveStorage S3 adapter by modifying Content-Length, requiring an upgrade to Rails.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8162?

CVE-2020-8162 is a high-severity vulnerability in Debian Debian Linux, published on 19 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-434, CWE-602

Which versions are affected by CVE-2020-8162?

4 open source packages ship an affected version, including activestorage. It affects 2 products.

PackageAffectedFixed in
activestorage RubyGemsFrom 5.0.05.2.4.3
activestorage RubyGemsFrom 5.0.05.2.4.3
activestorage RubyGemsFrom 6.0.06.0.3.1
activestorage RubyGemsFrom 6.0.06.0.3.1

Products include Debian Debian Linux, Rubyonrails Rails.

How do I fix CVE-2020-8162?

Upgrade activestorage to a fixed version for your release line: 5.2.4.3 or 6.0.3.1.

Is CVE-2020-8162 being exploited?

There is no known exploitation of CVE-2020-8162 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-8162, GHSA-m42x-37p3-fv5w, UBUNTU-CVE-2020-8162.

Is CVE-2020-8162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free