CVE details
CVE-2023-49090
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.
Matched ports (2)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| www/rubygem-carrierwave-gitlab | rubygem-carrierwave-gitlab | 1.3.4 | unaddressed | mfechner@FreeBSD.org |
| www/rubygem-carrierwave1 | rubygem-carrierwave1 | 1.3.4_1 | unaddressed | sunpoet@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>rubygem-carrierwave-gitlab</name>
<range><lt>2.2.5</lt></range>
</package>
<package>
<name>rubygem-carrierwave1</name>
<range><lt>2.2.5</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2023-49090</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2023-49090</url>
</references>
<dates>
<discovery>2023-11-29</discovery>
<entry>2026-10-26</entry>
</dates>
</vuln>