Skip to main content
← All vulnerabilities
CVE-2023-49090GHSA-GXHX-G4FQ-49HJ

CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.5, 3.0.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks. CarrierWave has a Content-Type allowlist bypass vulnerability, possibly leading to XSS. The validation in `allowlisted_content_type?` determines Content-Type permissions by performing a partial match. If the `content_type` argument of `allowlisted_content_type?` is passed a value crafted by the attacker, Content-Types not included in the `content_type_allowlist` will be allowed. This issue has been patched in versions 2.2.5 and 3.0.5.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • carrierwaveuploader carrierwave

    From 2.2.0 · fixed in 2.2.5; From 3.0.0 · fixed in 3.0.5

  • carrierwaveRubyGems

    From 3.0.0 · fixed in 3.0.5

  • carrierwaveRubyGems

    fixed in 2.2.5

References 3

GitHub · carrierwaveuploader/carrierwave