{"id":"CVE-2024-29034","published":"2024-03-24T19:27:35Z","modified":"2024-08-02T01:03:51Z","title":"CarrierWave's Content-Type allowlist bypass vulnerability which possibly leads to XSS remained","vendor":"carrierwaveuploader","product":"carrierwave","tier":"tail","description":{"text":"CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks. The vulnerability CVE-2023-49090 wasn't fully addressed. This vulnerability is caused by the fact that when uploading to object storage, including Amazon S3, it is possible to set a Content-Type value that is interpreted by browsers to be different from what's allowed by `content_type_allowlist`, by providing multiple values separated by commas. This bypassed value can be used to cause XSS. Upgrade to 3.0.7 or 2.2.6.\n","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.0044,"percentile":0.39142,"provenance":"source"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-vfmv-jfc5-pjjw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/commit/25b1c800d45ef8e78dc445ebe3bd8a6e3f0a3477","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.83},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"carrierwaveuploader","affectedVersions":[{"vendor":"carrierwaveuploader","product":"carrierwave","versions":[">= 3.0.0, < 3.0.7","< 2.2.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-01T19:25:25.313258Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"carrierwave","vulnerableRanges":[">=3.0.0, <3.0.7","<2.2.6"],"patched":["3.0.7","2.2.6"],"from":["GHSA-vfmv-jfc5-pjjw"],"provenance":"source"}],"summary":{"text":"CarrierWave, a file upload solution for Rails, Sinatra and other Ruby web frameworks, has an incomplete fix for a Content-Type allowlist bypass affecting uploads to object storage such as Amazon S3, where comma-separated multiple Content-Type values can be submitted that browsers interpret differently from what content_type_allowlist permits. An attacker with the ability to upload a file, who needs low-privilege authenticated access and requires a user to interact with the resulting content, can use the bypassed Content-Type to deliver cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:15Z"},"euvd":{"id":"EUVD-2024-1016","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,"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-2024-29034","published":"2024-03-24","fixed":"3.0.7","kev":false},{"cve":"CVE-2026-44587","published":"2026-06-16","fixed":"3.1.3","kev":false}],"package":"RubyGems:carrierwave"}}