Live threats

All CVEs / Carrierwave Project

CVE-2024-29034Carrierwave Project Carrierwave

Medium 6.1 No auth needed

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
Weakness (CWE)
CWE-79, CWE-436
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Carrierwave.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
carrierwave_projectcarrierwave< 2.2.6
carrierwave_projectcarrierwave≥ 3.0.0 < 3.0.7

Official sources

References

Links published by the sources. Open them with care.