Skip to main content
Public proof of conceptFix available

CVE-2026-44587

A public proof of concept exists; no exploitation attested.

  • Published2026-06-17
  • Fixed in3.1.3 · 2.2.7
  • WeaknessCWE-184 · CWE-625 · CWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-06-1713:20CVE publishedNVD

Versions per branch

NVD · OSV
Carrierwave project carrierwave
BranchAffectedFixed in
3.x≥ 3.0.0, < 3.1.33.1.3
3.x≥ 3.0.0.beta, < 3.1.33.1.3
2.2< 2.2.72.2.7

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • carrierwaveuploader carrierwave
    Affected
    • = < 2.2.7no fix stated
    • = >= 3.0.0.rc, < 3.1.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-06-16

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gitlab-rails-ce-18.1Chainguardall versions · no fixed version listedand 41 other packages
  • ruby-carrierwaveUbuntu:Pro:24.04:LTSall versions · no fixed version listed
  • ruby-carrierwaveUbuntu:Pro:22.04:LTSall versions · no fixed version listed
  • ruby-carrierwaveUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • ruby-carrierwaveUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • ruby-carrierwaveUbuntu:16.04:LTSall versions · no fixed version listed
  • ruby-carrierwaveDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Carrierwave project carrierwave to 3.1.3 · 2.2.7

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2026-06-17
  • CNACVSS 3.14.7known since 2026-10-26
  • NVDCVSS 3.16.1read 2026-10-26
  • CNAweakness (CWE)CWE-184, CWE-625, CWE-79known since 2026-10-26
  • FIRST EPSSEPSS score0.2 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2026-05-27

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2026-06-17
Last modified
2026-10-25
NVD status
Analyzed
GitHub advisory
GHSA-7g26-2qgj-chfg

Frequently asked questions

What is CVE-2026-44587?

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.

Is CVE-2026-44587 actively exploited?

A proof-of-concept exploit exists for CVE-2026-44587, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-44587?

CVE-2026-44587 has a CVSS v3 base score of 6.1 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running carrierwave? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record