CVE-2023-49090
Carrierwave Project Carrierwave vulnerability
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 products
Carrierwave. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Carrierwave Project Carrierwave runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj · Vendor Advisory
- github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5 · Patch
- github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-49090
- cve.org/CVERecord?id=CVE-2023-49090
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.