CVE-2024-29034 Details
Description
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.
A Content-Type allowlist bypass vulnerability has been identified in CarrierWave, a file upload solution for Ruby web frameworks like Rails and Sinatra. This vulnerability affects versions prior to 3.0.7 and prior to 2.2.6. The issue arises when uploading files to object storage, such as Amazon S3, where it's possible to manipulate the Content-Type value. By sending multiple values separated by commas, a bypass can occur, allowing an unauthorized Content-Type to be interpreted by browsers. This bypassed value could potentially be exploited to execute cross-site scripting (XSS) attacks.
Users are advised to upgrade to CarrierWave version 3.0.7 or 2.2.6. For those unable to upgrade, a monkey patch can be applied to parse the Content-Type using Marcel::MimeType.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 1, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-436 | Interpretation Conflict | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| carrierwave project carrierwave | < 2.2.6 >= 3.0.0, < 3.0.7 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 7, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 24, 2024 | New CVE Received | [email protected] |