CVE-2020-8159CWE-22

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…

published May 12, 2020

CVSS
—
EPSS
5%
Percentile
92.6
In the wild
Unconfirmed
What it is

⚠️ A sneaky file-writing flaw lurks in the actionpack_page-caching gem versions below 1.2.1, inviting attackers to drop in arbitrary files like a delivery person leaving unwanted packages on your doorstep! 📦 Think of this vulnerability as a hotel without a front desk staff. If a delivery person can stroll in and drop off any package without anyone checking its contents, you might end up with a surprise that’s not so pleasant! An attacker who capitalizes on this could write arbitrary files to your web server, leading to potentially devastating remote code execution if they manage to inject unescaped ERB into a view. This means they could take over your server like a thief with a master key!

Put simply

Think of this vulnerability as a hotel without a front desk staff. If a delivery person can stroll in and drop off any package without anyone checking its contents, you might end up with a surprise that’s not so pleasant! This vulnerability in the actionpack_page-caching gem allows file writes due to inadequate input validation, enabling the execution of arbitrary code if unfiltered ERB is written to a view.

What to do

An attacker who capitalizes on this could write arbitrary files to your web server, leading to potentially devastating remote code execution if they manage to inject unescaped ERB into a view. This means they could take over your server like a thief with a master key! To mitigate this, update the actionpack_page-caching gem to version 1.2.1 or higher immediately. Regularly audit your dependencies for vulnerabilities and enforce strict input validation practices. You've got this! 🛡️ Stay vigilant and keep your applications secure!

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.05380 · 92.6th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2020-05-12T13:01Z
EPSS history
Timeline
  • 12 MAY 13:01Z
    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…
    cvelistv5