GHSA-7g26-2qgj-chfg · 深刻度: medium · エコシステム: rubygems — CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
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-2026-44587 は公開エクスプロイトあり(50/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 0.22%、13 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-23 | 0.34% | 0.22% | -0.11% |
| 2 | 2026-06-19 | 0.37% | 0.34% | -0.03% |
| 3 | 2026-06-17 | — | 0.37% | — |
EPSS の全履歴 (全 4 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 4.7 | 3.1 | MEDIUM |
|
2.8 | 1.4 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-7g26-2qgj-chfg · 深刻度: medium · エコシステム: rubygems — CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-44587 not yet assigned priority: Debian including 1 source packages (ruby-carrierwave), 1 status rows across 1 suites (bookworm): open 1. | https://security-tracker.debian.org/tracker/CVE-2026-44587 |
ubuntu
|
medium | CVE-2026-44587 medium priority: Ubuntu including 1 source packages (ruby-carrierwave), 7 status rows across 7 suites (bionic, focal, jammy, noble, questing, resolute, upstream): needs-triage 5, DNE 2. | https://ubuntu.com/security/CVE-2026-44587 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| carrierwave_project | carrierwave | < 2.2.7 | cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:* |
| carrierwave_project | carrierwave | >= 3.0.0, < 3.1.3 | cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:* |