All CVEs / Carrierwave Project
CVE-2023-49090Carrierwave Project Carrierwave
Medium 6.1 No auth needed
Follow: this CVE · Carrierwave Project · Carrierwave Project Carrierwave We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 51
- Auth required
- No
- Published
- Nov 29, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Carrierwave.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | carrierwave |
≥ 3.0.0 < 3.0.5 |
3.0.5 |
gem "carrierwave", ">= 3.0.5" |
| RubyGems | carrierwave |
< 2.2.5 |
2.2.5 |
gem "carrierwave", ">= 2.2.5" |
Per OSV / GitHub Advisories (GHSA-gxhx-g4fq-49hj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| carrierwave_project | carrierwave | < 2.2.5 |
| carrierwave_project | carrierwave | ≥ 3.0.0 < 3.0.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Vendor Advisory