# CVE-2023-49090: ruby-carrierwave: CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks

CVE-2023-49090 is fixed in ruby-carrierwave on 1 platform, first by ruby-carrierwave 1.2.2-1ubuntu0.1~esm1, released November 29, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-49090
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0061
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 29, 2023

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ruby-carrierwave Ubuntu 18.04.6 LTS (bionic) | 1.2.2-1ubuntu0.1~esm1 | [ruby-carrierwave 1.2.2-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ruby-carrierwave-1.2.2-1ubuntu0.1-esm1.md) | Nov 29, 2023 |
| Linux | ruby-carrierwave Ubuntu 20.04 LTS (focal) | 1.3.1-2ubuntu0.1~esm1 | [ruby-carrierwave 1.3.1-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ruby-carrierwave-1.3.1-2ubuntu0.1-esm1.md) | Nov 29, 2023 |
| Linux | ruby-carrierwave Ubuntu 22.04.1 LTS (jammy) | 1.3.2-2ubuntu0.22.04.1~esm1 | [ruby-carrierwave 1.3.2-2ubuntu0.22.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ruby-carrierwave-1.3.2-2ubuntu0.22.04.1-esm1.md) | Nov 29, 2023 |
| Linux | ruby-carrierwave Ubuntu 24.04.5 LTS (noble) | 1.3.2-2ubuntu0.24.04.1~esm1 | [ruby-carrierwave 1.3.2-2ubuntu0.24.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-ruby-carrierwave-1.3.2-2ubuntu0.24.04.1-esm1.md) | Nov 29, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
