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


0.0
medium

Snyk CVSS

    Attack Complexity High
    User Interaction Required
    Confidentiality High

    Threat Intelligence

    EPSS 0.75% (81st percentile)
Expand this section
NVD
8.8 high

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 ID SNYK-RUBY-CARRIERWAVE-1070798
  • published 9 Feb 2021
  • disclosed 9 Feb 2021
  • credit wonda-tea-coffee

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