All CVEs / Carrierwave Project
CVE-2024-29034Carrierwave 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.6% probability of exploitation in 30 days · percentile 45
- Auth required
- No
- Published
- Mar 24, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- 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. The vulnerability CVE-2023-49090 wasn't fully addressed. This vulnerability is caused by the fact that when uploading to object storage, including Amazon S3, it is possible to set a Content-Type value that is interpreted by browsers to be different from what's allowed by `content_type_allowlist`, by providing multiple values separated by commas. This bypassed value can be used to cause XSS. Upgrade to 3.0.7 or 2.2.6.
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.7 |
3.0.7 |
gem "carrierwave", ">= 3.0.7" |
| RubyGems | carrierwave |
< 2.2.6 |
2.2.6 |
gem "carrierwave", ">= 2.2.6" |
Per OSV / GitHub Advisories (GHSA-vfmv-jfc5-pjjw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| carrierwave_project | carrierwave | < 2.2.6 |
| carrierwave_project | carrierwave | ≥ 3.0.0 < 3.0.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Third Party Advisory