RubyGems (Ruby)Worst: High5 advisories

carrierwave: known vulnerabilities

carrierwave has 5 reviewed security advisories in the GitHub Advisory Database — 1 high, 4 moderate. The most recent was published 2026-06-17. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the carrierwave versions running across your servers, containers and images, and ranks what to patch first.

How to fix carrierwave

Upgrade carrierwave to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update carrierwave to 2.2.7 (or gem install carrierwave -v 2.2.7)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters Moderate 4.7 CWE-116 CWE-79 — Affected: before 2.2.7. Fixed in 2.2.7. Published 2026-06-17. GHSA-7g26-2qgj-chfg · CVE-2026-44587
CarrierWave content-Type allowlist bypass vulnerability which possibly leads to XSS remained Moderate 6.8 CWE-436 CWE-79 — Affected: before 2.2.6. Fixed in 2.2.6. Published 2024-03-24. GHSA-vfmv-jfc5-pjjw · CVE-2024-29034
CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS Moderate 6.8 CWE-79 — Affected: before 2.2.5. Fixed in 2.2.5. Published 2023-11-29. GHSA-gxhx-g4fq-49hj · CVE-2023-49090
Code Injection vulnerability in CarrierWave::RMagick High 7.4 CWE-74 CWE-94 — Affected: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. Published 2021-02-08. GHSA-cf3w-g86h-35x4 · CVE-2021-21305
Server-side request forgery in CarrierWave Moderate 4.3 CWE-918 — Affected: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. Published 2021-02-08. GHSA-fwcm-636p-68r5 · CVE-2021-21288

Find carrierwave across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.