CVE-2020-8159 Arbitrary file write in actionpack-page_caching gem

Critical 9.8 Published Updated

An attacker can write arbitrary files to the web server via path traversal, potentially leading to remote code execution.

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-8159?

CVE-2020-8159 is a critical path traversal vulnerability in Debian Debian Linux, published on 12 May 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

There is a vulnerability in actionpack_page-caching gem < v1.2.1 that allows an attacker to write arbitrary files to a web server, potentially resulting in remote code execution if the attacker can write unescaped ERB to a view.

Weakness: CWE-22

Which versions are affected by CVE-2020-8159?

2 open source packages ship an affected version, including actionpack-page_caching. It affects 2 products.

PackageAffectedFixed in
actionpack-page_caching RubyGemsAll versions1.2.1
actionpack-page_caching RubyGemsAll versions1.2.1

Products include Debian Debian Linux, Rubyonrails Actionpack Page-Caching.

How do I fix CVE-2020-8159?

Upgrade actionpack-page_caching to 1.2.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-8159 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-8159, DLA-2719-1, GHSA-mg5p-95m9-rmfp, UBUNTU-CVE-2020-8159.

Is CVE-2020-8159 in your software?

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

Check your SBOMs for free