CVE-2023-49090CarrierWave has a 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.
What to do
Fixed builds are available from RubyGems: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | ruby-carrierwave | Fix pending | 1.3.2-2ubuntu0.24.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-49090 |
| Ubuntu 22.04 | ruby-carrierwave | Fix pending | 1.3.2-2ubuntu0.22.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-49090 |
| Ubuntu 20.04 | ruby-carrierwave | Fix pending | 1.3.1-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-49090 |
| Ubuntu 18.04 | ruby-carrierwave | Fix pending | 1.2.2-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-49090 |
| Ubuntu 16.04 | ruby-carrierwave | Fix pending | ||
| Ubuntu 14.04 | ruby-carrierwave | Fix pending | ||
| Debian 12 | ruby-carrierwave | Fix pending | DEBIAN-CVE-2023-49090 | |
| RubyGems library | carrierwave | Fixed | 2.2.5 | GHSA-gxhx-g4fq-49hj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- carrierwaveuploader carrierwave: affected: >= 2.2.0, < 2.2.5, >= 3.0.0, < 3.0.5
References
- https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj
- https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5
- https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.