CVE-2023-49090
MEDIUM 6.1CVSS 3.1CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS
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.
- Published
- 29 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gxhx-g4fq-49hj
- Sources
- NVDJSONOSV GHSA-gxhx-g4fq-49hjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | carrierwave_project | carrierwavecpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:* |
< 2.2.5 | 2.2.5 |
| NVD | carrierwave_project | carrierwavecpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:* |
>= 3.0.0, < 3.0.5 | 3.0.5 |
| OSV | RubyGems | carrierwave | >= 3.0.0, < 3.0.5 | 3.0.5 |
| OSV | RubyGems | carrierwave | < 2.2.5 | 2.2.5 |
References
- https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5 · Patch, WEB
- https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3 · Patch, WEB
- https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-49090 · ADVISORY
- https://github.com/carrierwaveuploader/carrierwave · PACKAGE
- https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/uploader/content_type_allowlist.rb · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2023-49090.yml · WEB
- https://rubygems.org/gems/carrierwave/versions/2.2.5 · WEB
- https://rubygems.org/gems/carrierwave/versions/3.0.5 · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 29 Nov 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Nov 2023)