目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-44587— carrierwave 输入验证错误漏洞

一分钟漏洞结论

影响对象
carrierwaveuploader carrierwave
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

CarrierWave carrierwave是CarrierWave个人开发者的一个Ruby文件上传组件。 carrierwave 2.2.7之前版本和3.1.3之前版本存在安全漏洞,该漏洞源于content_type_denylist检查未能转义字符串条目中的正则表达式元字符,导致黑名单无法正确匹配预期阻止的内容类型,可能导致存储型跨站脚本攻击。

CVSS 4.7 · Medium EPSS 0.22% · P13

影响版本矩阵 2

厂商产品 版本范围状态
carrierwaveuploader carrierwave < 2.2.7 affected
>= 3.0.0.rc, < 3.1.3 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-44587 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

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

受影响产品

厂商 产品 影响版本 CPE 订阅
carrierwaveuploader carrierwave < 2.2.7 -

二、漏洞 CVE-2026-44587 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-44587 的情报信息

登录查看更多情报信息。

CVE-2026-44587 补丁与修复 (2)

CVE-2026-44587 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44587

暂无评论


发表评论