Code Injection in CarrierWave - CVE-2021-21305

 

Code Injection in CarrierWave - CVE-2021-21305

Published: February 15, 2021


Vulnerability identifier: #VU50707
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21305
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to the #manipulate! method inappropriately evals the content of mutation option (:read/ :write). A remote authenticated attacker can send a specially crafted request and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

CarrierWave
Ubuntu
ruby-carrierwave (Ubuntu package)

How to mitigate CVE-2021-21305

Install updates from vendor's website.

CarrierWave - addressed in versions 1.3.2, 2.1.1
ruby-carrierwave (Ubuntu package) - update to Ubuntu Pro

External References

Related Security Bulletins