VDB

CVE-2023-49090

CVE-2023-49090 PUBLISHED CVSS 6.8 MEDIUM

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

Reported by github_m · Published November 29, 2023

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.

Risk scores

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

Affected products

VendorProductVersions
carrierwaveuploadercarrierwave>= 2.2.0, < 2.2.5, >= 3.0.0, < 3.0.5
carrierwaveuploadercarrierwave2.2.0, 3.0.0
RubyGemscarrierwave0, 3.0.0

Timeline

  • Nov 29, 2023 CVE Published
  • Nov 30, 2023 EPSS Score (30 in total, the first dated here)
  • Dec 20, 2023 PoC Published
  • Oct 5, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Jan 27, 2026 Security Advisory
  • Jan 27, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-49090
vulnetix vdb fixes CVE-2023-49090

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-49090/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›