Skip to main content
CVE-2026-44587VulnerabilityPublished Updated

Ruby carrierwave:

Affects ruby-carrierwaveSource GCVE Database

0
Compare
Authoritative record:CVE-2026-44587· Medium 4.7

Not known to be exploited · CVSS 4.7 Medium · fixed in 2.2.7 : update ruby-carrierwave when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.2.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu Pro 24.04 LTSruby-carrierwavepkg:deb/ubuntu/ruby-carrierwave?arch=source&distro=esm-apps/nobleOther threatsAffected
  • =1.3.2-2
  • =1.3.2-2ubuntu0.24.04.1~esm1
Fixed in–
Ubuntu Pro 22.04 LTSruby-carrierwavepkg:deb/ubuntu/ruby-carrierwave?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =1.3.2-2
  • =1.3.2-2ubuntu0.22.04.1~esm1
Fixed in–
Ubuntu Pro 20.04 LTSruby-carrierwavepkg:deb/ubuntu/ruby-carrierwave?arch=source&distro=esm-apps/focalOther threatsAffected
  • =1.3.1-2
  • =1.3.1-2ubuntu0.1~esm1
Fixed in–
Ubuntu Pro 18.04 LTSruby-carrierwavepkg:deb/ubuntu/ruby-carrierwave?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 0.10.0+gh-4 – 1.2.2-1ubuntu0.1~esm1
4 affected builds
Fixed in–
Ubuntu 16.04 LTSruby-carrierwavepkg:deb/ubuntu/ruby-carrierwave?arch=source&distro=xenialOther threatsAffected
  • =0.10.0+gh-1
  • =0.10.0+gh-2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

CarrierWave is a framework to upload files from Ruby applications. In versions prior to 2.2.7 and 3.1.3, the content_type_denylist check fails to escape regex metacharacters in string entries, causing the denylist to silently not match the content types it is intended to block. In lib/carrierwave/uploader/content_type_denylist.rb:57, denylist entries are interpolated directly into a regex without Regexp.quote or anchoring, so an entry such as image/svg+xml becomes the pattern /image\/svg+xml/, in which + is treated as a quantifier rather than a literal character and therefore never matches the real MIME type image/svg+xml. This is inconsistent with the allowlist implementation, which correctly applies both Regexp.quote and a \A anchor. Other content types containing regex metacharacters, such as application/xhtml+xml, are affected as well. As a result, any application that relies on content_type_denylist to block image/svg+xml, most commonly to prevent stored XSS, is silently unprotected. An attacker can upload an SVG file containing arbitrary JavaScript; if the application serves that SVG inline from its own origin, the script executes in the victim's browser, resulting in stored XSS. This issue has been fixed in versions 2.2.7 and 3.1.3.

References

Community reviews

Loading reviews…