Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/carrierwave@1.4
purl pkg:gem/carrierwave@1.4
Tags Ghost
Next non-vulnerable version 2.2.7
Latest non-vulnerable version 3.1.3
Risk 4.0
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-8qcp-bmgq-wye6
Aliases:
CVE-2021-21305
GHSA-cf3w-g86h-35x4
Code Injection vulnerability in CarrierWave::RMagick ### Impact [CarrierWave::RMagick](https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/processing/rmagick.rb) has a Code Injection vulnerability. Its `#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). (But supplying untrusted input to the option itself is dangerous even in absence of this vulnerability, since is prone to DoS vulnerability - attackers can try to consume massive amounts of memory by resizing to a very large dimension) ### Proof of Concept ```ruby class MyUploader < CarrierWave::Uploader::Base include CarrierWave::RMagick end MyUploader.new.manipulate!({ read: { density: "1 }; p 'Hacked'; {" }}) # => shows "Hacked" ``` ### Patches Upgrade to [2.1.1](https://rubygems.org/gems/carrierwave/versions/2.1.1) or [1.3.2](https://rubygems.org/gems/carrierwave/versions/1.3.2). ### Workarounds Stop supplying untrusted input to `#manipulate!`'s mutation option.
2.0.0.rc
Affected by 2 other vulnerabilities.
2.1.1
Affected by 2 other vulnerabilities.
VCID-gfzv-e2cs-c3dz
Aliases:
CVE-2021-21288
GHSA-fwcm-636p-68r5
Server-side request forgery in CarrierWave ### Impact [CarrierWave download feature](https://github.com/carrierwaveuploader/carrierwave#uploading-files-from-a-remote-location has an SSRF vulnerability, allowing attacks to provide DNS entries or IP addresses that are intended for internal use and gather information about the Intranet infrastructure of the platform. ### Patches Upgrade to [2.1.1](https://rubygems.org/gems/carrierwave/versions/2.1.1) or [1.3.2](https://rubygems.org/gems/carrierwave/versions/1.3.2). ### Workarounds Using proper network segmentation and applying the principle of least privilege to outbound connections from application servers can reduce the severity of SSRF vulnerabilities. Ideally the vulnerable gem should run on an isolated server without access to any internal network resources or cloud metadata access.
2.0.0.rc
Affected by 2 other vulnerabilities.
2.1.1
Affected by 2 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-04T16:14:48.740083+00:00 Ruby Importer Affected by VCID-gfzv-e2cs-c3dz https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2021-21288.yml 38.6.0
2026-06-04T16:14:48.678054+00:00 Ruby Importer Affected by VCID-8qcp-bmgq-wye6 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2021-21305.yml 38.6.0