CVE-2023-49090CWE-79

CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS

Medium · published November 29, 2023

CVSS v3.1
6.8
EPSS
1%
Percentile
48.7
In the wild
Unconfirmed
What it is

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 patched in versions 2.2.5 and 3.0.5.

The record
Technical detail
CVSS v3.1
6.8 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00613 · 48.7th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2023-11-29T14:38Z
EPSS history
Timeline
  • 29 NOV 14:38Z
    CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS
    cvelistv5