CVE-2023-49090: carrierwave_project carrierwave Cross-site Scripting
Vulnerability summary
CVE-2023-49090 is a medium (CVSS 6.8) Cross-site Scripting vulnerability in carrierwave_project carrierwave. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 29-11-2023PublishedVulnerability first disclosed.
- 11-10-2024Last modifiedVulnerability information updated.
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 patched in versions 2.2.5 and 3.0.5.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- OSV · RubygemsEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.61%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
0.00 pp
From 0.61% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard44 products
- commercial-gitlab-rails-ee-19.1All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.2All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.3All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.4All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.5All versions (No fix recorded)
Carrierwave_project1 product
- carrierwave< 2.2.5 | ≥ 3.0.0, < 3.0.5
Carrierwaveuploader1 product
- carrierwave≥ 2.2.0, < 2.2.5 | ≥ 3.0.0, < 3.0.5
Debian1 product
- ruby-carrierwaveAll versions (No fix recorded)
RubyGems1 product
- carrierwave≥ 3.0.0, < 3.0.5 | < 2.2.5
Ubuntu1 product
- ruby-carrierwave< 1.2.2-1ubuntu0.1~esm1 | < 1.3.1-2ubuntu0.1~esm1 | < 1.3.2-2ubuntu0.22.04.1~esm1 | < 1.3.2-2ubuntu0.24.04.1~esm1
6 vendors · 49 products
References
14 links- github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hjX Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5X Refsource MISCREPORTFIXWEBPatch
- github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3X Refsource MISCREPORTFIXWEBPatch