Remote Code Execution (RCE) Affecting carrierwave package, versions >=2.0.0.rc, <2.1.1<1.3.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
12.68% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-CARRIERWAVE-1070798
  • published9 Feb 2021
  • disclosed9 Feb 2021
  • creditwonda-tea-coffee

Introduced: 9 Feb 2021

CVE-2021-21305  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade carrierwave to version 2.1.1, 1.3.2 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE). The #manipulate! method inappropriately evals the content of mutation option (:read/ :write), allowing attackers to craft a string that can be executed. If an application developer supplies untrusted inputs to the option, it will lead to remote code execution (RCE).

References

CVSS Base Scores

version 3.1