Loading advisory.
Loading advisory.
Code Injection vulnerability in CarrierWave::RMagick
CarrierWave::RMagick 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.
Published 2021-02-08 19:16 UTC · Modified 2026-07-08 06:28 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| carrierwave | RubyGems | < 1.3.2 >= 2.0.0, < 2.1.1 versions 0.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.2.0, 0.2.1, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.5.1, 0.3.5.2, 0.4.0, 0.4.1, 0.4.10 and 39 more | 1.3.2, 2.1.1 | gem install carrierwave -v 1.3.2gem install carrierwave -v 2.1.1 |
CarrierWave::RMagick 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)
class MyUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
end
MyUploader.new.manipulate!({ read: { density: "1 }; p 'Hacked'; {" }}) # => shows "Hacked"Stop supplying untrusted input to #manipulate!'s mutation option.
Code Injection Software Attack
If you have any questions or comments about this advisory:
Open an issue in CarrierWave repo
Email me at mit.shibuya@gmail.com
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.132 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.132 | first score | v2026.06.15 |