CVE-2024-29034 json
CarrierWave's Content-Type allowlist bypass vulnerability which possibly leads to XSS remained
published 2024-03-24 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-1016 , GHSA-vfmv-jfc5-pjjw
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems carrierwave 2.2.6, 3.0.7
- carrierwave_project carrierwave 2.2.6, 3.0.7
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | carrierwave | >=3.0.0, <3.0.7 <2.2.6 |
3.0.7 2.2.6 |
Affected products
- carrierwaveuploader carrierwave
Classification
References
-
github.com
/carrierwaveuploader/carrierwave/commit/25b1c800d45ef8e78dc445ebe3bd8a6e3f0a3477
web, patch
-
github.com
/carrierwaveuploader/carrierwave/security/advisories/GHSA-vfmv-jfc5-pjjw
web, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-29034
advisory
-
github.com
/carrierwaveuploader/carrierwave
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2024-29034.yml
web
Sources
- CVE List CVE-2024-29034
- GitHub Advisory GHSA-vfmv-jfc5-pjjw
- NVD CVE-2024-29034
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.