CVE-2023-49090Cross-site Scripting in Carrierwave

Severity
6.1MEDIUMNVD
CNA6.8OSV8.8
EPSS
0.1%
top 65.62%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 29
Latest updateMay 7

Description

CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks. CarrierWave has a Content-Type allowlist bypass vulnerability, possibly leading to XSS. The validation in `allowlisted_content_type?` determines Content-Type permissions by performing a partial match. If the `content_type` argument of `allowlisted_content_type?` is passed a value crafted by the attacker, Content-Types not included in the `content_type_allowlist` will be allowed. This issue has been patch

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages3 packages

CVEListV5carrierwaveuploader/carrierwave< 2.2.6+3
NVDcarrierwave_project/carrierwave3.0.03.0.7+3
RubyGemscarrierwave_project/carrierwave3.0.03.0.5+3

Patches

🔴Vulnerability Details

9
OSV
ruby-carrierwave vulnerabilities2025-05-07
OSV
CarrierWave content-Type allowlist bypass vulnerability which possibly leads to XSS remained2024-03-25
GHSA
CarrierWave content-Type allowlist bypass vulnerability which possibly leads to XSS remained2024-03-25
OSV
CVE-2024-29034: CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks2024-03-24
CVEList
CarrierWave's Content-Type allowlist bypass vulnerability which possibly leads to XSS remained2024-03-24

📋Vendor Advisories

3
Ubuntu
CarrierWave vulnerabilities2025-05-07
Debian
CVE-2024-29034: ruby-carrierwave - CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web...2024
Debian
CVE-2023-49090: ruby-carrierwave - CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web...2023
CVE-2023-49090 — Cross-site Scripting in Carrierwave | cvebase