CVE-2026-44587 json
CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
published 5mo ago modified 14d ago also EUVD-2026-37515 , GHSA-7g26-2qgj-chfg
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems carrierwave 2.2.7, 3.1.3
- carrierwave_project carrierwave 2.2.7, 3.1.3
Is CVE-2026-44587 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4mo ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-7g26-2qgj-chfg referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | carrierwave | >=3.0.0.beta, <3.1.3 <2.2.7 |
3.1.3 2.2.7 |
Affected products
- carrierwaveuploader carrierwave
Classification
References
-
github.com
/carrierwaveuploader/carrierwave/commit/21221cc6e260633f7da78c6133a88666a5529d27
web, patch
-
github.com
/carrierwaveuploader/carrierwave/commit/4c4a005775a436c5165df014dc9b1874c227d86c
web, patch
-
github.com
/carrierwaveuploader/carrierwave/security/advisories/GHSA-7g26-2qgj-chfg
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-44587
advisory
-
github.com
/carrierwaveuploader/carrierwave
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2026-44587.yml
web
-
cve.org
/CVERecord?id=CVE-2026-44587
web
Sources
- CVE List CVE-2026-44587
- GitHub Advisory GHSA-7g26-2qgj-chfg
- NVD CVE-2026-44587
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.