CVE catalog

CVE-2021-21305

CarrierWave vulnerabilities

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
12.68% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-carrierwavebookworm1.3.2-2fixed
Ubunturuby-carrierwavenoble1.3.2-2ubuntu0.24.04.1~esm1fixed
Ubunturuby-carrierwavepro1.3.2-2vulnerable
Ubunturuby-carrierwavepro1.3.2-2ubuntu0.24.04.1~esm1fixed
Ubunturuby-carrierwave16.040.10.0+gh-1vulnerable
Ubunturuby-carrierwave16.040.10.0+gh-2vulnerable
Ubunturuby-carrierwavepro1.3.1-2vulnerable
Ubunturuby-carrierwavepro1.3.1-2ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-carrierwavesourcebookworm1.3.2-1not yet assignedNot reported[982551]
Ubunturuby-carrierwavedebnoble1.3.2-2ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubunturuby-carrierwavedebpro1.3.2-2ubuntu0.24.04.1~esm1Not reportedUSN-7497-1Not reported
Ubunturuby-carrierwavedebpro1.3.1-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-21305Not reported

[Debian bug #982551]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.3.2-2 · all · bookworm

      Fixed · Fixed: 1.3.2-1

      usn · ruby-carrierwave · debian · bookworm; usn · ruby-carrierwave · debian · 12

    • 1.3.2-2 · all · bookworm

      Fixed · Fixed: 1.3.2-1

      usn · ruby-carrierwave · debian · bookworm; usn · ruby-carrierwave · debian · 12

Observed:

References