p PatchFirst

CVE-2023-49090

CVE-2023-49090 · CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS

CVSS 6.8 · Medium · EPSS 0.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-carrierwave"'
gem list --exact carrierwave

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • USN-7497-1 · Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS ·

Stack: system · ruby

Affected products and versions

  • carrierwave

    Versions
    • >= 2.2.0, < 2.2.5: Affected
    • >= 3.0.0, < 3.0.5: Affected

    No fix published

  • ruby-carrierwave Debian 12

    Versions
    • 1.3.2-2
    • 2.0.2-1
    • 2.2.2-1
    • 3.0.7-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • carrierwave RubyGems

    Versions
    • 3.0.0
    • 3.0.1
    • 3.0.2
    • 3.0.3
    • 3.0.4
    Affected ranges
    • ECOSYSTEM: ≥ 3.0.0, < 3.0.5

    Update to 3.0.5

  • carrierwave RubyGems

    Versions
    • 0.1
    • 0.10.0
    • 0.11.0
    • 0.11.1
    • 0.11.2
    • 0.2.0
    All versions (69)
    • 0.2.1
    • 0.2.3
    • 0.2.4
    • 0.3.0
    • 0.3.1
    • 0.3.2
    • 0.3.3
    • 0.3.4
    • 0.3.5
    • 0.3.5.1
    • 0.3.5.2
    • 0.4.0
    • 0.4.1
    • 0.4.10
    • 0.4.2
    • 0.4.3
    • 0.4.4
    • 0.4.5
    • 0.4.6
    • 0.4.7
    • 0.4.8
    • 0.4.9
    • 0.5.0
    • 0.5.0.beta2
    • 0.5.1
    • 0.5.2
    • 0.5.3
    • 0.5.4
    • 0.5.5
    • 0.5.6
    • 0.5.7
    • 0.5.8
    • 0.6.0
    • 0.6.1
    • 0.6.2
    • 0.7.0
    • 0.7.1
    • 0.8.0
    • 0.9.0
    • 1.0.0
    • 1.0.0.beta
    • 1.0.0.rc
    • 1.1.0
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.2.3
    • 1.3.0
    • 1.3.1
    • 1.3.2
    • 1.3.3
    • 1.3.4
    • 2.0.0
    • 2.0.0.rc
    • 2.0.1
    • 2.0.2
    • 2.1.0
    • 2.1.1
    • 2.2.0
    • 2.2.1
    • 2.2.2
    • 2.2.3
    • 2.2.4
    Affected ranges
    • ECOSYSTEM: < 2.2.5

    Update to 2.2.5

  • ruby-carrierwave Ubuntu Pro 18.04 LTS

    Versions
    • 0.10.0+gh-4
    • 1.1.0-3
    • 1.2.2-1
    Affected ranges
    • ECOSYSTEM: < 1.2.2-1ubuntu0.1~esm1

    Update to 1.2.2-1ubuntu0.1~esm1

  • ruby-carrierwave Ubuntu Pro 20.04 LTS

    Versions
    • 1.3.1-2
    Affected ranges
    • ECOSYSTEM: < 1.3.1-2ubuntu0.1~esm1

    Update to 1.3.1-2ubuntu0.1~esm1

  • ruby-carrierwave Ubuntu Pro 22.04 LTS

    Versions
    • 1.3.2-2
    Affected ranges
    • ECOSYSTEM: < 1.3.2-2ubuntu0.22.04.1~esm1

    Update to 1.3.2-2ubuntu0.22.04.1~esm1

  • ruby-carrierwave Ubuntu Pro 24.04 LTS

    Versions
    • 1.3.2-2
    Affected ranges
    • ECOSYSTEM: < 1.3.2-2ubuntu0.24.04.1~esm1

    Update to 1.3.2-2ubuntu0.24.04.1~esm1

Original sources

Check your server →