File Upload Vulnerability in CarrierWave Framework by Ruby
CVE-2026-44587

4.7MEDIUM

Key Information:

Vendor
CVE Published:
16 June 2026

What is CVE-2026-44587?

In the CarrierWave framework, a serious issue arises due to the failure of the content_type_denylist check to properly escape regex metacharacters. This oversight allows attackers to upload potentially malicious SVG files containing arbitrary JavaScript, leading to stored XSS vulnerabilities. The affected versions do not accurately match the intended content types on the denylist, making applications reliant on this security feature vulnerable to exploitation. The issue is resolved in versions 2.2.7 and 3.1.3, emphasizing the critical nature of keeping software up to date.

Affected Version(s)

carrierwave < 2.2.7 < 2.2.7

carrierwave >= 3.0.0.rc, < 3.1.3 < 3.0.0.rc, 3.1.3

References

CVSS V3.1

Score:
4.7
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.