#VU50707 Code Injection in CarrierWave


Published: 2021-02-15

Vulnerability identifier: #VU50707

Vulnerability risk: Medium

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-21305

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
CarrierWave
Web applications / Modules and components for CMS

Vendor: CarrierWave

Description

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

CarrierWave: 0.1.0 - 2.1.0


External links
http://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#132---2021-02-08
http://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#211---2021-02-08
http://github.com/carrierwaveuploader/carrierwave/commit/387116f5c72efa42bc3938d946b4c8d2f22181b7
http://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-cf3w-g86h-35x4
http://rubygems.org/gems/carrierwave


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability