CVEfocus › CVE database › CVE-2023-49090

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

CVSS 6.8 MediumEPSS 0.8% (higher than 51% of CVEs)Published 2023-11-29Updated 2024-10-11Assigner: GitHub_M

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.

CWE-79

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

1Fixed
7Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-carrierwaveFix pending1.3.2-2ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-49090
Ubuntu 22.04ruby-carrierwaveFix pending1.3.2-2ubuntu0.22.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-49090
Ubuntu 20.04ruby-carrierwaveFix pending1.3.1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-49090
Ubuntu 18.04ruby-carrierwaveFix pending1.2.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-49090
Ubuntu 16.04ruby-carrierwaveFix pending
Ubuntu 14.04ruby-carrierwaveFix pending
Debian 12ruby-carrierwaveFix pendingDEBIAN-CVE-2023-49090
RubyGems librarycarrierwaveFixed2.2.5GHSA-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.

References

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.