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 made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.75% (82nd 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 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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

8.8 high