8.8

CVE-2021-21305: carrierwave_project carrierwave Injection

CVSS: 8.8v3.1HighModified
AliasesUBUNTU-CVE-2021-21305DEBIAN-CVE-2021-21305GHSA-cf3w-g86h-35x4
Published 08-02-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-21305 is a high (CVSS 8.8) Injection vulnerability in carrierwave_project carrierwave. EPSS estimates a 12.68% chance of exploitation in the next 30 days, higher than 96.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
48/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
12.68%
0%100%
Medium · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 08-02-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

12.68%

Chance of exploitation in the next 30 days

Percentile

96%

Versus all other CVEs

30-day change

0.00 pp

From 12.68% on 21-09-2026

21-09-202621-10-2026
EPSS score
12.68%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Carrierwave

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Carrierwave_project1 product
Carrierwaveuploader1 product
Debian1 product
  • ruby-carrierwave< 1.3.2-1
RubyGems1 product
  • carrierwave< 1.3.2 | ≥ 2.0.0, < 2.1.1
Ubuntu1 product
  • ruby-carrierwaveAll versions (No fix recorded) | < 1.2.2-1ubuntu0.1~esm1 | < 1.3.1-2ubuntu0.1~esm1

5 vendors · 5 products

References

12 links
Show all 12 references