CVE-2023-49090 — Vulnerability in carrierwave — CVE Details
CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS
Summary
Advisory Timeline
- First published November 29, 2023 (1048 days ago).
Remediation
Upgrade to the fixed version using your package manager.
gem install carrierwave -v 2.2.5
gem install carrierwave -v 3.0.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| carrierwave | rubygems | 0.1, 0.10.0, 0.11.0, 0.11.1 (+65 more) | 2.2.5 |
| carrierwave | rubygems | 3.0.0, 3.0.1, 3.0.2, 3.0.3 (+1 more) | 3.0.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
References
- https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-49090ADVISORY
- https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5WEB
- https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3WEB
- https://github.com/carrierwaveuploader/carrierwavePACKAGE
- https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/uploader/content_type_allowlist.rbWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2023-49090.ymlWEB
- https://rubygems.org/gems/carrierwave/versions/2.2.5WEB
- https://rubygems.org/gems/carrierwave/versions/3.0.5WEB
Frequently Asked Questions
- What is CVE-2023-49090?
- CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
- How do I check if my project is affected by CVE-2023-49090?
- CVE-2023-49090 affects carrierwave. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-49090 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2021-21305HIGH
Code Injection vulnerability in CarrierWave::RMagick
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-44587MEDIUM
CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- CVE-2024-29034MEDIUM
CarrierWave content-Type allowlist bypass vulnerability which possibly leads to XSS remained
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies