{"id":"CVE-2023-49090","published":"2023-11-29T14:38:52Z","modified":"2024-10-11T17:55:40Z","title":"CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS","vendor":"carrierwaveuploader","product":"carrierwave","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00613,"percentile":0.50322,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5","tags":["x_refsource_MISC"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":10.06},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"carrierwaveuploader","affectedVersions":[{"vendor":"carrierwaveuploader","product":"carrierwave","versions":[">= 2.2.0, < 2.2.5",">= 3.0.0, < 3.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-11T17:51:30.827156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"carrierwave","vulnerableRanges":[">=3.0.0, <3.0.5","<2.2.5"],"patched":["3.0.5","2.2.5"],"from":["GHSA-gxhx-g4fq-49hj"],"provenance":"source"}],"summary":{"text":"The CarrierWave file upload library for Rails, Sinatra and other Ruby web frameworks has a flaw in its allowlisted_content_type? check, which performs a partial match on the Content-Type, so attacker-crafted values can get Content-Types outside the configured allowlist accepted. An attacker who can submit uploads and induce a user to interact with the resulting content (such as opening a crafted file) can exploit this to potentially achieve cross-site scripting, with the attack requiring low privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:58Z"},"euvd":{"id":"EUVD-2023-2969","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21288","published":"2021-02-08","fixed":"2.1.1","kev":false},{"cve":"CVE-2021-21305","published":"2021-02-08","fixed":"2.1.1","kev":false},{"cve":"CVE-2023-49090","published":"2023-11-29","fixed":"3.0.5","kev":false},{"cve":"CVE-2024-29034","published":"2024-03-24","fixed":"3.0.7","kev":false,"link":{"from":"CVE-2023-49090","to":"CVE-2024-29034","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:carrierwave","fromFixed":"3.0.5","toFixed":"3.0.7","daysApart":116},{"kind":"version-step","provenance":"source","package":"RubyGems:carrierwave","fromFixed":"2.2.5","toFixed":"2.2.6","daysApart":116},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-44587","published":"2026-06-16","fixed":"3.1.3","kev":false}],"package":"RubyGems:carrierwave"}}