Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. carrierwave
  4. ›
  5. CVE-2024-29034

CVE-2024-29034: CarrierWave content-Type allowlist bypass vulnerability which possibly leads to XSS remained

March 25, 2024

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.

References

  • github.com/advisories/GHSA-vfmv-jfc5-pjjw
  • github.com/carrierwaveuploader/carrierwave
  • github.com/carrierwaveuploader/carrierwave/commit/25b1c800d45ef8e78dc445ebe3bd8a6e3f0a3477
  • github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-vfmv-jfc5-pjjw
  • nvd.nist.gov/vuln/detail/CVE-2024-29034

Code Behaviors & Features

Detect and mitigate CVE-2024-29034 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.2.6, all versions starting from 3.0.0 before 3.0.7

Fixed versions

  • 3.0.7
  • 2.2.6

Solution

Upgrade to versions 2.2.6, 3.0.7 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/carrierwave/CVE-2024-29034.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.