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

目标: 1000 元 · 已筹: 1325

100%

CVE-2026-44587— CarrierWave 未转义正则元字符绕过内容类型限制漏洞

CVSS 4.7 · Medium EPSS 0.34% · P25

影响版本矩阵 2

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

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

漏洞信息

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

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

Vulnerability Title
CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
来源: 美国国家漏洞数据库 NVD
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.
来源: 美国国家漏洞数据库 NVD
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
宽松定义的正则表达式
来源: 美国国家漏洞数据库 NVD

受影响产品

厂商产品影响版本CPE订阅
carrierwaveuploadercarrierwave < 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

暂无评论


发表评论