# CVE-2024-29034: CarrierWave's Content-Type allowlist bypass vulnerability which possibly leads to XSS remained

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-03-24T19:27:35.996Z
- Modified: 2026-06-17T07:22:17.663Z
- Also known as: GHSA-vfmv-jfc5-pjjw
- Weaknesses: CWE-79, CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- carrierwaveuploader carrierwave: >= 3.0.0, < 3.0.7; < 2.2.6
- carrierwave (RubyGems): from 3.0.0 before 3.0.7; before 2.2.6
- carrierwave_project carrierwave: before 2.2.6; from 3.0.0 before 3.0.7

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-vfmv-jfc5-pjjw> (patch, third-party-advisory, web)
- <https://github.com/carrierwaveuploader/carrierwave/commit/25b1c800d45ef8e78dc445ebe3bd8a6e3f0a3477> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29034> (advisory)
- <https://github.com/carrierwaveuploader/carrierwave> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2024-29034.yml> (web)

## Sources

- CVE List: [CVE-2024-29034](https://www.cve.org/CVERecord?id=CVE-2024-29034), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-vfmv-jfc5-pjjw](https://github.com/advisories/GHSA-vfmv-jfc5-pjjw), CC-BY-4.0, modified 2024-03-27
- NVD: [CVE-2024-29034](https://nvd.nist.gov/vuln/detail/CVE-2024-29034), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-29034 · Whole record: https://cve.day/CVE-2024-29034.json · Rebuilt by cve.day 2026-11-25T22:58:37.870Z
