Cloudanix VulnDB

CVE-2026-44587

Medium · 4.7

CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters

CVSS

4.7

EPSS

0.3%

Published

May 27, 2026

CISA due date

—

The record

CarrierWave's 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. **Note**: CarrierWave is aware `#content_type_denylist is deprecated for the security reason`, but it still used by developers, and the problem here isn't denylist allows any filetype, and thats not a vulnerability in carrierwave, its an implementation problem in developers using CarrierWave, the problem is its denylist entries are interpolated directly into a regex without `Regexp.quote` or anchoring. The denylist is still useful when developers want to ban specific content types but allow everything else.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities