Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-44587— CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters

CVSS 4.7 · Medium EPSS 0.22% · P13

Possible ATT&CK Techniques 1AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 2

VendorProductVersion RangeStatus
carrierwaveuploadercarrierwave< 2.2.7affected
>= 3.0.0.rc, < 3.1.3affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-44587

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
宽松定义的正则表达式
Source: CVE Program / CVE List V5
Vulnerability Title
carrierwave 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CarrierWave carrierwave是CarrierWave个人开发者的一个Ruby文件上传组件。 carrierwave 2.2.7之前版本和3.1.3之前版本存在安全漏洞,该漏洞源于content_type_denylist检查未能转义字符串条目中的正则表达式元字符,导致黑名单无法正确匹配预期阻止的内容类型,可能导致存储型跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
carrierwaveuploadercarrierwave < 2.2.7 -

II. Public POCs for CVE-2026-44587

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44587

登录查看更多情报信息。

Patches & Fixes for CVE-2026-44587 (2)

Vendor Advisories for CVE-2026-44587 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44587

No comments yet


Leave a comment