Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21305

7.4 · HIGH
Published Feb 8, 2021 carrierwave_project CWE-74 EPSS 12.68% (96th pctl)

Overview

CVE-2021-21305 is a high-severity vulnerability affecting carrierwave_project carrierwave. It was published on February 8, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1, there is a code injection vulnerability. The "#manipulate!" method inappropriately evals the content of mutation option(:read/:write), allowing attackers to craft a string that can be executed as a Ruby code. If an application developer supplies untrusted inputs to the option, it will lead to remote code execution(RCE). This is fixed in versions 1.3.2 and 2.1.1.

Remediation

Check the references section for vendor advisories and patches from carrierwave_project. Update carrierwave to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
carrierwave_project carrierwave >= 0, < 1.3.2 Affected

Frequently Asked Questions

What is CVE-2021-21305?

CVE-2021-21305 is a high-severity vulnerability affecting carrierwave_project carrierwave. It was published on February 8, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

How severe is CVE-2021-21305?

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-21305?

Check the references section for vendor advisories and patches from carrierwave_project. Update carrierwave to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21305?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21305 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.