Ubuntu CVE Tracker
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:18.04:LTS | ruby-carrierwave | All versions before 1.2.2-1ubuntu0.1~esm1 (fixed in 1.2.2-1ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | ruby-carrierwave | All versions before 1.3.1-2ubuntu0.1~esm1 (fixed in 1.3.1-2ubuntu0.1~esm1) |
| Ubuntu:Pro:22.04:LTS | ruby-carrierwave | All versions before 1.3.2-2ubuntu0.22.04.1~esm1 (fixed in 1.3.2-2ubuntu0.22.04.1~esm1) |
| Ubuntu:Pro:24.04:LTS | ruby-carrierwave | All versions before 1.3.2-2ubuntu0.24.04.1~esm1 (fixed in 1.3.2-2ubuntu0.24.04.1~esm1) |
References
- https://ubuntu.com/security/CVE-2023-49090
- 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
- https://www.cve.org/CVERecord?id=CVE-2023-49090
- https://ubuntu.com/security/notices/USN-7497-1