{"id":"UBUNTU-CVE-2023-49090","details":"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.","modified":"2026-02-04T04:19:39.500440Z","published":"2023-11-29T15:15:00Z","related":["USN-7497-1"],"upstream":["CVE-2023-49090"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-49090"},{"type":"REPORT","url":"https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj"},{"type":"REPORT","url":"https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5"},{"type":"REPORT","url":"https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-49090"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7497-1"}],"affected":[{"package":{"name":"ruby-carrierwave","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-carrierwave@1.2.2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-1ubuntu0.1~esm1"}]}],"versions":["0.10.0+gh-4","1.1.0-3","1.2.2-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-carrierwave","binary_version":"1.2.2-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49090.json"}},{"package":{"name":"ruby-carrierwave","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-carrierwave@1.3.1-2ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-2ubuntu0.1~esm1"}]}],"versions":["1.3.1-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-carrierwave","binary_version":"1.3.1-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49090.json"}},{"package":{"name":"ruby-carrierwave","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-carrierwave@1.3.2-2ubuntu0.22.04.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-2ubuntu0.22.04.1~esm1"}]}],"versions":["1.3.2-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-carrierwave","binary_version":"1.3.2-2ubuntu0.22.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49090.json"}},{"package":{"name":"ruby-carrierwave","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-carrierwave@1.3.2-2ubuntu0.24.04.1~esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-2ubuntu0.24.04.1~esm1"}]}],"versions":["1.3.2-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-carrierwave","binary_version":"1.3.2-2ubuntu0.24.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49090.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}