CVE-2023-49090
MEDIUM6.8EPSS 0.14%CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS
發布日:2023/11/29修改日:2026/4/28
描述
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.
受影響套件(2)
- Debian/ruby-carrierwavefrom 0
- RubyGems/carrierwave>= 3.0.0, < 3.0.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
參考連結(10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-49090
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-49090
- PATCHhttps://github.com/carrierwaveuploader/carrierwave
- WEBhttps://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/uploader/content_type_allowlist.rb
- WEBhttps://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5
- WEBhttps://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3
- WEBhttps://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2023-49090.yml
- WEBhttps://rubygems.org/gems/carrierwave/versions/2.2.5
- WEBhttps://rubygems.org/gems/carrierwave/versions/3.0.5