carrierwaveuploader carrierwave up to 2.2.6/3.1.2 SVG File content_type_denylist.rb permissive regular expression

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.4$0-$5k0.00

Summaryinfo

A vulnerability marked as critical has been reported in carrierwaveuploader carrierwave up to 2.2.6/3.1.2. The affected element is an unknown function in the library lib/carrierwave/uploader/content_type_denylist.rb of the component SVG File Handler. Performing a manipulation results in permissive regular expression. This vulnerability is reported as CVE-2026-44587. The attack is possible to be carried out remotely. No exploit exists. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as critical, was found in carrierwaveuploader carrierwave up to 2.2.6/3.1.2. This affects an unknown code in the library lib/carrierwave/uploader/content_type_denylist.rb of the component SVG File Handler. The manipulation with an unknown input leads to a permissive regular expression vulnerability. CWE is classifying the issue as CWE-625. The product uses a regular expression that does not sufficiently restrict the set of allowed values. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2026-44587 since 05/06/2026. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. It demands that the victim is doing some kind of user interaction. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 321723 (Linux Distros Unpatched Vulnerability : CVE-2026-44587), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 2.2.7 or 3.1.3 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (321723). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Vendor

Name

Version

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.5
VulDB Meta Temp Score: 5.4

VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA Base Score: 4.7
CNA Vector (GitHub_M): 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Permissive regular expression
CWE: CWE-625 / CWE-185 / CWE-697
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 321723
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-44587

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: carrierwave 2.2.7/3.1.3

Timelineinfo

05/06/2026 CVE reserved
06/17/2026 +42 days Advisory disclosed
06/17/2026 +0 days VulDB entry created
06/20/2026 +3 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: github.com
Status: Confirmed

CVE: CVE-2026-44587 (🔒)
GCVE (CVE): GCVE-0-2026-44587
GCVE (VulDB): GCVE-100-371487

Entryinfo

Created: 06/17/2026 05:38
Updated: 06/20/2026 23:47
Changes: 06/17/2026 05:38 (64), 06/20/2026 23:47 (2)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!