Skip to main content
VulnerabilityPublished

CVE-2026-44587: carrierwaveuploader carrierwave · Permissive Regular Expression

Affects carrierwaveuploader carrierwaveSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 4.7 Medium : upgrade to 3.1.3 or 2.2.7 when convenient.

Data as of 30 Oct 2026, 11:52 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 3.1.3, 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 30 Oct 2026.

What to do

Upgrade carrierwaveuploader carrierwave to 3.1.3 or 2.2.7.

Affected software

ProductAffectedFixed in
carrierwaveuploadercarrierwaveAffected
  • >=3.0.0.rc <3.1.3
Fixed in
  • 3.1.3
carrierwaveuploadercarrierwaveAffected
  • <2.2.7
Fixed in
  • 2.2.7
RubyGemscarrierwavepkg:gem/carrierwaveOther threatsAffected
  • <2.2.7
  • <3.1.3
Fixed in
  • 2.2.7
  • 3.1.3

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

AI-suggested

Upgrade CarrierWave to version 2.2.7 or later, or 3.1.3 or later, where the issue is fixed by properly escaping regex metacharacters and anchoring denylist entries. No other mitigation is specified or required as the fix is available in these official releases.

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…