CVE-2023-49090
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| carrierwaveuploader | carrierwave | >= 2.2.0, < 2.2.5, >= 3.0.0, < 3.0.5 |
| carrierwaveuploader | carrierwave | 2.2.0, 3.0.0 |
| RubyGems | carrierwave | 0, 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
References
- https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj x_refsource_CONFIRM
- https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5 x_refsource_MISC
- https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-49090 advisory
- https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/uploader/content_type_allowlist.rb url
- https://rubygems.org/gems/carrierwave/versions/2.2.5 url
- https://rubygems.org/gems/carrierwave/versions/3.0.5 url
- https://github.com/advisories/GHSA-gxhx-g4fq-49hj advisory